API

Function removePhysicsBody

  • Remove a single body from the world and release its native handle (the per-frame step skips it from now on). After this the body must not be reused. A body that isn't in the world is ignored, so this is safe to call once per body. Does NOT release the body's collision shape — release that separately with releasePhysicsShape if it isn't shared.

    Parameters

    Returns void