Class CastRaySettingsInterface

Hierarchy (View Summary)

Properties

bpFilterLayer: number

Broadphase layer number for filtering.

BP_LAYER_MOVING (1)
calculateNormal: boolean

If true, will calculate and add to results a contact normal at contact point.

false
firstOnly: boolean

Whether to return only the first contact.

true
ignoreBackFaces: boolean

If true, the ray will ignore shape backfaces.

true
ignoreSensors: boolean

If true, the ray will ignore sensors.

false
immediate: boolean

Whether to make a query and return the results immediately. Only supported when physics is running on main thread.

true
objFilterLayer: number

Object layer number for filtering.

OBJ_LAYER_MOVING (1)
treatConvexAsSolid: boolean

If true, the convex shapes will be treated as "solid". That is, if a ray starts from inside a convex shape, it will report a contact.

true