added linear velocity to positionStateUpdate

This commit is contained in:
logsol 2014-05-29 21:48:23 +02:00
parent 72dc454bd5
commit 927b12b726
2 changed files with 4 additions and 3 deletions

View file

@ -75,10 +75,11 @@ function (Parent, Item, Box2D, Nc) {
}
}
Doll.prototype.updatePositionState = function(positionState) {
Doll.prototype.updatePositionState = function(update) {
if(!this.isAnotherPlayerNearby()) {
this.body.SetAwake(true);
this.body.SetPosition(positionState);
this.body.SetPosition(update.p);
this.body.SetLinearVelocity(update.lv);
}
};