added washing machine, fixed grabbing and rotation and position

This commit is contained in:
Jeena 2014-01-10 18:22:59 +01:00
parent 3a07d946b0
commit fa9a0d5d22
5 changed files with 55 additions and 13 deletions

View file

@ -11,6 +11,7 @@ function (Parent, Box2D, Settings) {
Parent.call(this, physicsEngine, uid);
this.createFixture();
this.body.ResetMassData();
this.flipDirection = 1;
}
Item.prototype = Object.create(Parent.prototype);
@ -46,6 +47,12 @@ function (Parent, Box2D, Settings) {
this.body.CreateFixture(fixtureDef);
}
Item.prototype.flip = function(direction) {
this.flipDirection = direction;
// FIXME: implement body flip if necessary
};
return Item;