Release a collision shape's native handle, freeing its WASM memory. Only call once no body still references the shape (e.g. after removePhysicsBody). Useful when rebuilding a changing set of static colliders so their shapes don't accumulate.
The physics world.
The shape to release.
Release a collision shape's native handle, freeing its WASM memory. Only call once no body still references the shape (e.g. after removePhysicsBody). Useful when rebuilding a changing set of static colliders so their shapes don't accumulate.