removed the mesh collision shape from HelloTerrainCollision.java

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10662 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..om 12 years ago
parent a67786c58e
commit 08b27f7673
  1. 9
      engine/src/test/jme3test/helloworld/HelloTerrainCollision.java

@ -145,12 +145,9 @@ public class HelloTerrainCollision extends SimpleApplication
terrain.addControl(control);
/** 6. Add physics: */
// We set up collision detection for the scene by creating a
// compound collision shape and a static RigidBodyControl with mass zero.*/
CollisionShape terrainShape =
CollisionShapeFactory.createMeshShape((Node) terrain);
landscape = new RigidBodyControl(terrainShape, 0);
terrain.addControl(landscape);
/* We set up collision detection for the scene by creating a static
* RigidBodyControl with mass zero.*/
terrain.addControl(new RigidBodyControl(0));
// We set up collision detection for the player by creating
// a capsule collision shape and a CharacterControl.

Loading…
Cancel
Save