removed the mesh collision shape from HelloTerrainCollision.java
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10662 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a67786c58e
commit
08b27f7673
@ -145,12 +145,9 @@ public class HelloTerrainCollision extends SimpleApplication
|
|||||||
terrain.addControl(control);
|
terrain.addControl(control);
|
||||||
|
|
||||||
/** 6. Add physics: */
|
/** 6. Add physics: */
|
||||||
// We set up collision detection for the scene by creating a
|
/* We set up collision detection for the scene by creating a static
|
||||||
// compound collision shape and a static RigidBodyControl with mass zero.*/
|
* RigidBodyControl with mass zero.*/
|
||||||
CollisionShape terrainShape =
|
terrain.addControl(new RigidBodyControl(0));
|
||||||
CollisionShapeFactory.createMeshShape((Node) terrain);
|
|
||||||
landscape = new RigidBodyControl(terrainShape, 0);
|
|
||||||
terrain.addControl(landscape);
|
|
||||||
|
|
||||||
// We set up collision detection for the player by creating
|
// We set up collision detection for the player by creating
|
||||||
// a capsule collision shape and a CharacterControl.
|
// a capsule collision shape and a CharacterControl.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user