@Override
public void simpleInitApp() {
BulletAppState bulletAppState = new BulletAppState();
bulletAppState.setThreadingType(BulletAppState.ThreadingType.PARALLEL);
stateManager.attach(bulletAppState);
// bulletAppState.getPhysicsSpace().setAccuracy(1f/30f);
bulletAppState.getPhysicsSpace().enableDebug(assetManager);
// Load Island
Node island = (Node) assetManager.loadModel("Models/Islands/ogre/island_01.j3o");
rootNode.attachChild(island);
// Load Island CollisionMesh
Node islandCollision = (Node) assetManager.loadModel("Models/Islands/ogre/island_01_collision.j3o");
Geometry geoCollision = (Geometry) islandCollision.getChild(0);
CollisionShape colShape = new MeshCollisionShape(geoCollision.getMesh());
colShape.setMargin(0.005f);
RigidBodyControl rigControl = new RigidBodyControl(colShape, 0);
island.addControl(rigControl);
bulletAppState.getPhysicsSpace().add(rigControl);
// Load trees
Node trees = (Node) assetManager.loadModel("Models/Islands/ogre/trees_01.j3o");
rootNode.attachChild(trees);