src/system.js
function (body) {
    this.driver.removeBody(body);

    body.removeEventListener('collide', this.listeners[body.id]);
    delete this.listeners[body.id];

    body.applyImpulse = body.__applyImpulse;
    delete body.__applyImpulse;

    body.applyForce = body.__applyForce;
    delete body.__applyForce;

    delete body.updateProperties;
  }
function (body) {
    this.driver.removeBody(body);

    body.removeEventListener('collide', this.listeners[body.id]);
    delete this.listeners[body.id];

    body.applyImpulse = body.__applyImpulse;
    delete body.__applyImpulse;

    body.applyForce = body.__applyForce;
    delete body.__applyForce;

    delete body.updateProperties;
  }
function ( body ) { this . driver . removeBody ( body ) ; body . removeEventListener ( 'collide' , this . listeners [ body . id ] ) ; delete this . listeners [ body . id ] ; body . applyImpulse = body . __applyImpulse ; delete body . __applyImpulse ; body . applyForce = body . __applyForce ; delete body . __applyForce ; delete body . updateProperties ; }
Removes a body and its proxied methods.
@param {CANNON.Body} body
Removes a body and its proxied methods .