jMonkeyEngine/wiki

Wiki lesson code errors

mitm001 opened this issue · 0 comments

Wiki Page https://jmonkeyengine.github.io/wiki/jme3/beginner/hello_collision.html
In the sample code at the start of lesson sceneModel is not cast to (Node).

CollisionShape sceneShape = CollisionShapeFactory.createMeshShape(sceneModel);

as is stated under heading The Physics-Controlled Scene

CollisionShape sceneShape = CollisionShapeFactory.createMeshShape((Node) sceneModel);

Under Heading The Physics-Controlled Player
The tip to use enableDebug() no longer works.
bulletAppState.getPhysicsSpace().enableDebug(assetManager);

Is this what you're after?

bulletAppState.setDebugEnabled(true);

Under Heading Navigation 2. onAction()
The code here does not match the sample code onAction() method used at the start of the lesson.