fixed jumping bug

This commit is contained in:
Jeena 2014-01-20 13:29:10 +01:00
parent 0072f0e6b5
commit 0665348ae2
2 changed files with 2 additions and 2 deletions

View file

@ -219,7 +219,7 @@ function (Parent, Box2D, Settings, CollisionDetector, Item) {
this.body.SetAwake(true);
var vector = new Box2D.Common.Math.b2Vec2(0, -Settings.JUMP_SPEED);
this.body.ApplyImpulse(vector, this.body.GetPosition());
this.body.SetLinearVelocity(vector);
this.setStanding(false);