Repaired Collision detecteion by adding one detector for each user - fixes #15

This commit is contained in:
Logsol 2013-01-06 01:40:46 +01:00
parent a1e94e1ed0
commit f07505bc20
9 changed files with 31 additions and 29 deletions

View file

@ -17,9 +17,9 @@ function (Settings, Box2D, CollisionDetector) {
return this.world;
}
Engine.prototype.setCollisionDetector = function (me) {
Engine.prototype.setCollisionDetector = function (player) {
var detector = new CollisionDetector(me); // FIXME: check if core collision detector works
var detector = new CollisionDetector(player);
this.world.SetContactListener(detector.getListener());
}