- fix bug in character.setJumpSpeed (thanks to lyfox)

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 3287a9fc01
commit 714d0263fe
  1. 2
      engine/src/bullet/com/jme3/bullet/objects/PhysicsCharacter.java
  2. 2
      engine/src/jbullet/com/jme3/bullet/objects/PhysicsCharacter.java

@ -150,7 +150,7 @@ public class PhysicsCharacter extends PhysicsCollisionObject {
}
public void setJumpSpeed(float jumpSpeed) {
this.jumpSpeed = fallSpeed;
this.jumpSpeed = jumpSpeed;
setJumpSpeed(characterId, jumpSpeed);
}

@ -141,7 +141,7 @@ public class PhysicsCharacter extends PhysicsCollisionObject {
}
public void setJumpSpeed(float jumpSpeed) {
this.jumpSpeed = fallSpeed;
this.jumpSpeed = jumpSpeed;
character.setJumpSpeed(jumpSpeed);
}

Loading…
Cancel
Save