From 08b27f7673b3d2815a97902eff89cf4035aa805f Mon Sep 17 00:00:00 2001 From: "bre..om" Date: Wed, 26 Jun 2013 16:15:26 +0000 Subject: [PATCH] removed the mesh collision shape from HelloTerrainCollision.java git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10662 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../test/jme3test/helloworld/HelloTerrainCollision.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/src/test/jme3test/helloworld/HelloTerrainCollision.java b/engine/src/test/jme3test/helloworld/HelloTerrainCollision.java index 051e68adb..06d12be1a 100644 --- a/engine/src/test/jme3test/helloworld/HelloTerrainCollision.java +++ b/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.