HelloCollision won’t run (solved)

Hi.



I’m trying to run the exact code from the HelloCollision tutorial and the below is giving me problems.



[java] // We set up collision detection for the scene by creating a

// compound collision shape and a physics node.

CompoundCollisionShape sceneShape =

CollisionShapeFactory.createMeshCompoundShape((Node) sceneModel);

landscape = new PhysicsNode(sceneModel, sceneShape, 0);

[/java]



Problem:

[java]createMeshCompoundShape(com.jme3.scene.Node) has private access in

com.jme3.bullet.util.CollisionShapeFactory

CollisionShapeFactory.createMeshCompoundShape((Node) sceneModel);

[/java]



Please help :slight_smile:

Use createMeshShape() instead.

Thanks normen. That does the trick.