Optional
raw: RawNarrowPhaseIterates through all the contact manifolds between the given pair of colliders.
The first collider involved in the contact.
The second collider involved in the contact.
Closure that will be called on each contact manifold between the two colliders. If the second argument
passed to this closure is true
, then the contact manifold data is flipped, i.e., methods like localNormal1
actually apply to the collider2
and fields like localNormal2
apply to the collider1
.
Enumerates all the colliders potentially in contact with the given collider.
The second collider involved in the contact.
Closure that will be called on each collider that is in contact with collider1
.
Returns true
if collider1
and collider2
intersect and at least one of them is a sensor.
− The first collider involved in the intersection.
− The second collider involved in the intersection.
Enumerates all the colliders intersecting the given colliders, assuming one of them is a sensor.
Generated using TypeDoc
The narrow-phase used for precise collision-detection.
To avoid leaking WASM resources, this MUST be freed manually with
narrowPhase.free()
once you are done using it.