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
Use createMeshShape() instead.
Thanks normen. That does the trick.