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

Method remove

packages/rapier2d/src/geometry/collider_set.ts:135–143  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

unmapMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected