Class CollideShapeSettingsInterface

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 shape will ignore other shapes 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
maxSeparationDistance: number

When > 0 contacts in the vicinity of the query shape can be found. All nearest contacts that are not further away than this distance will be found.

0 (m)
objFilterLayer: number

Object layer number for filtering.

OBJ_LAYER_MOVING (1)
offset: Vec3

All hit results will be returned relative to this offset, can be zero to get results in world position, but when you're testing far from the origin you get better precision by picking a position that's closer since floats are most accurate near the origin.

Vec3(0, 0, 0)
scale: Vec3

Scales the shape used during collision test. Allows to re-use existing shapes, if only scale is different.

Vec3(1, 1, 1)