Ver código fonte

Update hello_physics.adoc

Fixed debug states under Excercises.
mitm001 9 anos atrás
pai
commit
a2fc86a71d
1 arquivos alterados com 8 adições e 1 exclusões
  1. 8 1
      src/docs/asciidoc/jme3/beginner/hello_physics.adoc

+ 8 - 1
src/docs/asciidoc/jme3/beginner/hello_physics.adoc

@@ -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.