|
@@ -171,13 +171,6 @@ public class HelloCollision extends SimpleApplication
|
|
|
} else if (binding.equals("Down")) {
|
|
|
down = isPressed;
|
|
|
} else if (binding.equals("Jump")) {
|
|
|
- //Some methods used for setting gravity related variables were deprecated in
|
|
|
- //the 3.2 version of the engine. Choose the method that matches your version
|
|
|
- //of the engine.
|
|
|
- // < jME3.2
|
|
|
- //if (isPressed) { player.jump();}
|
|
|
-
|
|
|
- // >= jME3.2
|
|
|
if (isPressed) { player.jump(new Vector3f(0,20f,0));}
|
|
|
}
|
|
|
}
|
|
@@ -461,13 +454,6 @@ Remember that this class implements the `ActionListener` interface, so you can c
|
|
|
} else if (binding.equals("Down")) {
|
|
|
if (value) { down = true; } else { down = false; }
|
|
|
} else if (binding.equals("Jump")) {
|
|
|
- //Some methods used for setting gravity related variables were deprecated in
|
|
|
- //the 3.2 version of the engine. Choose the method that matches your version
|
|
|
- //of the engine.
|
|
|
- // < jME3.2
|
|
|
- //if (isPressed) { player.jump();}
|
|
|
-
|
|
|
- // >= jME3.2
|
|
|
if (isPressed) { player.jump(new Vector3f(0,20f,0));}
|
|
|
}
|
|
|
}
|