add client side physics

by god did this take a lot of debugging to get working
This commit is contained in:
Asraelite 2016-03-24 00:13:10 +00:00
parent 65f78ec3ac
commit 1412cabbb4
19 changed files with 697 additions and 71 deletions

View file

@ -30,7 +30,6 @@ class Ship extends Body {
move(data) {
let b = this.b2body;
//console.log(b.GetLocalCenter());
for(var i in b) {
@ -70,7 +69,9 @@ class Ship extends Body {
type: 'ship',
id: this.id,
team: this.player.team,
name: this.player.name,
frame: this.frame,
power: this.power,
mounts: this.mounts,
turrets: this.turrets,
size: this.size,