User-provided result callback. Will be used if mode is Ray.ALL.
Set to false
if you don't want the Ray to take collisionResponse
flags into account on bodies and shapes.
collisionFilterGroup
collisionFilterMask
direction
from
Will be set to true
during intersectWorld() if the ray hit anything.
The intersection mode. Should be Ray.ANY, Ray.ALL or Ray.CLOSEST.
The precision of the ray. Used when checking parallelity etc.
Current result object.
If set to true
, the ray skips any hits with normal.dot(rayDirection) < 0.
to
ALL
ANY
CLOSEST
Get the world AABB of the ray.
Shoot a ray at an array bodies, get back information about the hit.
An array of Body objects.
Shoot a ray at a body, get back information about the hit.
Do itersection against all bodies in the given World.
True if the ray hit anything, otherwise false.
A line in 3D space that intersects bodies and return points.