Browse Source

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

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7524 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
nor..67 14 years ago
parent
commit
714d0263fe

+ 1 - 1
engine/src/bullet/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);
     }
 

+ 1 - 1
engine/src/jbullet/com/jme3/bullet/objects/PhysicsCharacter.java

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