fixed flip for RubeDoll

This commit is contained in:
Jeena 2015-08-02 17:22:41 +02:00
parent 0b8d885d48
commit f35b9f5ba9
5 changed files with 33 additions and 27 deletions

View file

@ -128,8 +128,8 @@ function (Parent, Box2D, Options, Settings, Exception, Nc, Assert) {
handPosition.y
);
this.body.SetPosition(position);
this.flip(direction);
this.body.SetAngle((this.options.grabAngle || 0.0) * direction);
this.flip(direction);
};
Item.prototype.getGrabPoint = function() {