MCPcopy Create free account
hub / github.com/esengine/esengine / removeCollider

Method removeCollider

packages/rapier2d/src/pipeline/world.ts:603–612  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected