improve grappling hook physics and rendering

This commit is contained in:
Asraelite 2016-03-27 02:22:49 +01:00
parent 4753f879e5
commit 663305bd23
11 changed files with 129 additions and 55 deletions

View file

@ -82,7 +82,7 @@ class World {
addCopula(copula) {
this.copulae.add(copula);
this.physics.createCopula(copula);
this.room.broadcast('create', copula.packFull());
this.room.broadcast('effect', copula.packFull());
}
applyDelta(body, data) {
@ -138,8 +138,8 @@ class World {
this.room.broadcast('destroy', copula.id);
}
weld(bodyA, bodyB) {
this.physics.weld(bodyA, bodyB);
weld(bodyA, bodyB, point) {
this.physics.weld(bodyA, bodyB, point);
}
start() {