Optional
callback?: ((result) => void)Optional
checkSet to true if you want the Ray to take .collisionResponse flags into account on bodies and shapes.
Optional
collisionCollision group
Optional
collisionCollision mask
Optional
from?: Vec2Ray start point.
Optional
mode?: typeof CLOSEST | typeof ANY | typeof ALLThe intersection mode.
Optional
skipIf set to true, the ray skips any hits with normal.dot(rayDirection) < 0.
Optional
to?: Vec2Ray end point.
Current, user-provided result callback. Will be used if mode is Ray.ALL.