X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/1676911c8a2621274bf75ff7271faa926cf58d6c..43413defcb854c8706a84a6a54a61c7977b52614:/lib/systems/grab.js?ds=sidebyside diff --git a/lib/systems/grab.js b/lib/systems/grab.js index 43e6246..c50d1d9 100644 --- a/lib/systems/grab.js +++ b/lib/systems/grab.js @@ -131,8 +131,6 @@ export default class GrabSystem extends System { Body.setPosition(grabber.grabArea.area, grabber.body.body.position); - console.log('Grab!'); - for (const grabbable of this.grabbables) { if (grabbable.entity === grabber.entity) { @@ -142,7 +140,6 @@ export default class GrabSystem extends System { const collision = SAT.collides(grabber.grabArea.area, grabbable.body.body); if (collision.collided) { grab.constraint = this._createConstraint(grabber.body.body, grabbable.body.body); - console.log('Grabbing', grab.constraint); } } } @@ -158,7 +155,6 @@ export default class GrabSystem extends System { _release(grabber) { - console.log('Releasing', grabber.grab.constraint); World.remove(this.engine.world, grabber.grab.constraint); grabber.grab.currentCooldown = 0; grabber.grab.constraint = null;