Help with bounding boxes?
#1
For some reason, I'm unable to call cBoundingBox:IsInside(). I wanted to to something like this :

(A table object "Arena" contains a bounding box btw.)

if Arena.BoundingBox:IsInside(Player:GetPosition()) then
    -- do stuff
end

But when I call that, it says something like "given const Vector3d: expected cBoundingBox"

Ok, So I make a bounding box with the player dimensions:

local PlayerBoundingBox = cBoundingBox(Player:GetPosition(), 0.4, 1.8)
if Arena.BoundingBox:IsInside(PlayerBoundingBox) then
    -- do stuff
end

But is spits out "given [no object]: const Vector3d expected"

What am I doing wrong? Any help would be appreciated.
Reply
Thanks given by:


Messages In This Thread
Help with bounding boxes? - by DiamondToaster - 03-01-2015, 08:59 AM
RE: Help with bounding boxes? - by worktycho - 03-01-2015, 10:51 AM
RE: Help with bounding boxes? - by DiamondToaster - 03-01-2015, 11:14 AM
RE: Help with bounding boxes? - by Seadragon91 - 03-01-2015, 05:29 PM
RE: Help with bounding boxes? - by DiamondToaster - 03-02-2015, 01:35 AM
RE: Help with bounding boxes? - by DiamondToaster - 03-03-2015, 09:31 AM
RE: Help with bounding boxes? - by xoft - 03-03-2015, 10:31 AM
RE: Help with bounding boxes? - by DiamondToaster - 03-03-2015, 10:46 AM
RE: Help with bounding boxes? - by xoft - 03-03-2015, 05:08 PM
RE: Help with bounding boxes? - by DiamondToaster - 03-04-2015, 11:09 AM



Users browsing this thread: 1 Guest(s)