* Remove a collider from this set. * * @param handle - The integer handle of the collider to remove. * @param bodies - The set of rigid-body containing the rigid-body the collider is attached to. * @param wakeUp - If `true`, the rigid-body the removed collider is attached to will
(
handle: ColliderHandle,
islands: IslandManager,
bodies: RigidBodySet,
wakeUp: boolean,
)
| 133 | * @param wakeUp - If `true`, the rigid-body the removed collider is attached to will be woken-up automatically. |
| 134 | */ |
| 135 | public remove( |
| 136 | handle: ColliderHandle, |
| 137 | islands: IslandManager, |
| 138 | bodies: RigidBodySet, |
| 139 | wakeUp: boolean, |
| 140 | ) { |
| 141 | this.raw.remove(handle, islands.raw, bodies.raw, wakeUp); |
| 142 | this.unmap(handle); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Internal function, do not call directly. |