Optional raw: RawColliderSetPrivate mapCreates a new collider and return its integer handle.
The set of bodies where the collider's parent can be found.
The collider's description.
The integer handle of the rigid-body this collider is attached to.
Creates a collider holding a soft body's deformable collision mesh: a polyline (2D) or a
triangle mesh (3D) built with the DEFORMABLE flag, whose vertices follow the cluster
of the parent proxy through binding.
Returns null when the binding fails: the parent is not a live cluster proxy, the shape
is not a deformable mesh, or a vertex could not be bound.
The set of bodies where the parent proxy can be found.
The set of soft bodies owning the cluster.
The collider's description.
How the mesh follows the cluster.
The handle of the cluster proxy (see SoftBody.rootBody,
SoftBody.clusterProxy).
Internal Applies the given closure to each collider contained by this set.
The closure to apply.
Wraps the colliders the engine created on its own (the deformable collision meshes of soft bodies) that have no JavaScript wrapper yet.
Remove a collider from this set.
The integer handle of the collider to remove.
The set of rigid-body containing the rigid-body the collider is attached to.
If true, the rigid-body the removed collider is attached to will be woken-up automatically.
A set of rigid bodies that can be handled by a physics pipeline.
To avoid leaking WASM resources, this MUST be freed manually with
colliderSet.free()once you are done using it (and all the rigid-bodies it created).