bulletAppState.setEnabled(true); stateManager.attach(bulletAppState);
bulletAppState.setEnabled(true); stateManager.attach(bulletAppState); bullet = new Sphere(32, 32, 1.0f, true, false);
protected void createPhysicsEngineAndAttachItToScene() { bulletAppState = new BulletAppState(); // physics engine based in jbullet bulletAppState.setThreadingType(BulletAppState.ThreadingType.PARALLEL); bulletAppState.setEnabled(true); stateManager.attach(bulletAppState); //bulletAppState.getPhysicsSpace().setAccuracy(1 / 200f); if(physicsDebugging) { bulletAppState.getPhysicsSpace().enableDebug(assetManager); } // to show the collision wireframes }