X-Git-Url: https://git.r.bdr.sh/rbdr/sumo/blobdiff_plain/1676911c8a2621274bf75ff7271faa926cf58d6c..bb8d5ef47baf7ad16a1bc58526f81ce332b090d6:/lib/systems/grab.js 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;