|
@@ -87,7 +87,7 @@ public class HelloCollision extends SimpleApplication
|
|
|
/** Set up Physics */
|
|
/** Set up Physics */
|
|
|
bulletAppState = new BulletAppState();
|
|
bulletAppState = new BulletAppState();
|
|
|
stateManager.attach(bulletAppState);
|
|
stateManager.attach(bulletAppState);
|
|
|
- //bulletAppState.getPhysicsSpace().enableDebug(assetManager);
|
|
|
|
|
|
|
+ //bulletAppState.setDebugEnabled(true);
|
|
|
|
|
|
|
|
// We re-use the flyby camera for rotation, while positioning is handled by physics
|
|
// We re-use the flyby camera for rotation, while positioning is handled by physics
|
|
|
viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));
|
|
viewPort.setBackgroundColor(new ColorRGBA(0.7f, 0.8f, 1f, 1f));
|
|
@@ -345,7 +345,7 @@ Again, you create a CollisionShape: This time you choose a CapsuleCollisionShape
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
|
-bulletAppState.getPhysicsSpace().enableDebug(assetManager);
|
|
|
|
|
|
|
+bulletAppState.setDebugEnabled(true);
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
|
|
|