|
|
@@ -25,7 +25,7 @@ Apart from making models “solid, the most common use cases for physics in 3D g
|
|
|
All these physical properties can be simulated in JME3. Let's have a look at a simulation of physical forces in this example where you shoot cannon balls at a brick wall.
|
|
|
|
|
|
|
|
|
-image::jme3/beginner/beginner-physics.png[beginner-physics.png,with="360",height="291",align="center"]
|
|
|
+image::jme3/beginner/beginner-physics.png[beginner-physics.png,360,291,align="center"]
|
|
|
|
|
|
|
|
|
|
|
|
@@ -492,9 +492,16 @@ Add the following line after the bulletAppState initialization.
|
|
|
|
|
|
[source,java]
|
|
|
----
|
|
|
+// For older versions up to JME sdk 3.0.10
|
|
|
bulletAppState.getPhysicsSpace().enableDebug(assetManager);
|
|
|
----
|
|
|
|
|
|
+or
|
|
|
+[source,java]
|
|
|
+----
|
|
|
+// For new versions thereafter
|
|
|
+bulletAppState.setDebugEnabled(true);
|
|
|
+----
|
|
|
Now you see the collisionShapes of the bricks and spheres, and the floor highlighted.
|
|
|
|
|
|
|