removed collisionDetector for every player again, because box2d can only have one - userData solution instead

This commit is contained in:
Logsol 2013-01-06 03:02:34 +01:00
parent f07505bc20
commit a59a258ad6
5 changed files with 21 additions and 18 deletions

View file

@ -14,6 +14,8 @@ function (Parent, PhysicsEngine, ViewController, KeyboardController, Notificatio
Parent.call(this, new PhysicsEngine());
this.physicsEngine.setCollisionDetector();
this.me = null;
this.keyboardController = null;
@ -65,8 +67,6 @@ function (Parent, PhysicsEngine, ViewController, KeyboardController, Notificatio
//this.onSpawnPlayer(options);
this.me = this.players[playerId];
this.keyboardController = new KeyboardController(this.me, this);
this.physicsEngine.setCollisionDetector(this.me);
}
GameController.prototype.onSpawnPlayer = function(options) {