Shape:containsPoint

Edit

Returns whether a point is inside the Shape.

This takes into account the pose of the Shape's collider (if any), as well as its local offset set with Shape:setOffset.



Arguments

NameTypeDescription
xnumber The x coordinate of the point.
ynumber The y coordinate of the point.
znumber The z coordinate of the point.

Returns

NameTypeDescription
hitboolean Whether the point is inside the Shape.

Arguments

NameTypeDescription
pointvector The point, as a vector.

Returns

NameTypeDescription
hitboolean Whether the point is inside the Shape.

See also