* Removes the given collider from this physics world. * * @param collider - The collider to remove. * @param wakeUp - If set to `true`, the rigid-body this collider is attached to will be awaken.
(collider: Collider, wakeUp: boolean)
| 601 | * @param wakeUp - If set to `true`, the rigid-body this collider is attached to will be awaken. |
| 602 | */ |
| 603 | public removeCollider(collider: Collider, wakeUp: boolean) { |
| 604 | if (this.colliders) { |
| 605 | this.colliders.remove( |
| 606 | collider.handle, |
| 607 | this.islands, |
| 608 | this.bodies, |
| 609 | wakeUp, |
| 610 | ); |
| 611 | } |
| 612 | } |
| 613 | |
| 614 | /** |
| 615 | * Removes the given impulse joint from this physics world. |