/** * Destroy a rigid body. * This automatically deletes all associated shapes and joints. * This function is locked during callbacks. * * @param body body to destroy */ public void destroyBody(Body body) { assertNotLocked(); body.destroy(); bodies.removeValueByIdentity(body); // jbox2dTODO djm recycle body }
/** * Destroy a rigid body. * This automatically deletes all associated shapes and joints. * This function is locked during callbacks. * * @param body body to destroy */ public void destroyBody(Body body) { assertNotLocked(); body.destroy(); bodies.removeValueByIdentity(body); // jbox2dTODO djm recycle body }