|
@@ -130,9 +130,10 @@ public class HelloTerrainCollision extends SimpleApplication
|
|
|
TerrainLodControl control = new TerrainLodControl(terrain, cameras);
|
|
|
terrain.addControl(control);
|
|
|
|
|
|
- /** 6. Add physics: */
|
|
|
- // We set up collision detection for the scene by creating a static
|
|
|
- RigidBodyControl with mass zero.*/
|
|
|
+ /** 6. Add physics:
|
|
|
+ * We set up collision detection for the scene by creating a static
|
|
|
+ * RigidBodyControl with mass zero.
|
|
|
+ */
|
|
|
terrain.addControl(new RigidBodyControl(0));
|
|
|
|
|
|
/**
|