Optional
raw: RawRigidBodySetPrivate
mapCreates a new rigid-body and return its integer handle.
The description of the rigid-body to create.
Internal method, do not call this explicitly.
Applies the given closure to each active rigid-bodies contained by this set.
A rigid-body is active if it is not sleeping, i.e., if it moved recently.
The closure to apply.
Removes a rigid-body from this set.
This will also remove all the colliders and joints attached to the rigid-body.
The integer handle of the rigid-body to remove.
The set of colliders that may contain colliders attached to the removed rigid-body.
The set of impulse joints that may contain joints attached to the removed rigid-body.
The set of multibody joints that may contain joints attached to the removed rigid-body.
Generated using TypeDoc
A set of rigid bodies that can be handled by a physics pipeline.
To avoid leaking WASM resources, this MUST be freed manually with
rigidBodySet.free()
once you are done using it (and all the rigid-bodies it created).