|
@@ -128,7 +128,7 @@ public class HelloCollision extends SimpleApplication
|
|
|
|
|
|
// You can change the gravity of individual physics objects before or after
|
|
|
//they are added to the PhysicsSpace, but it must be set before MOVING the
|
|
|
- //PhysicsLocation.
|
|
|
+ //physics location.
|
|
|
player.setGravity(new Vector3f(0,-30f,0));
|
|
|
player.setPhysicsLocation(new Vector3f(0, 10, 0));
|
|
|
}
|
|
@@ -384,7 +384,7 @@ Finally we put the player in its starting position and update its state – reme
|
|
|
[IMPORTANT]
|
|
|
====
|
|
|
You can set the gravity before or after adding the object to the physics space,
|
|
|
-but gravity must be set BEFORE moving the physics space itself.
|
|
|
+but gravity must be set BEFORE moving the physics location.
|
|
|
|
|
|
[source, java]
|
|
|
----
|