Physics debug visualization works for HeightfieldCollisionShape in jme3-bullet but not in jme3-jbullet.
To demonstrate this issue, modify jme3test.terrain.TerrainGridAlphaMapTest as follows:
@@ -47,7 +47,7 @@
private float grassScale = 64;
private float dirtScale = 16;
private float rockScale = 128;
- private boolean usePhysics = false;
+ private boolean usePhysics = true;
public static void main(final String[] args) {
TerrainGridAlphaMapTest app = new TerrainGridAlphaMapTest();
@@ -161,6 +161,7 @@
this.terrain.addControl(control);
final BulletAppState bulletAppState = new BulletAppState();
+ bulletAppState.setDebugEnabled(true);
stateManager.attach(bulletAppState);
With jme3-bullet, the HeightfieldCollisionShape is visualized as blue wireframe, overlaid on the grass/dirt/rock. With jme3-jbullet, only the grass/dirt/rock is visible.
Physics debug visualization works for
HeightfieldCollisionShapeinjme3-bulletbut not injme3-jbullet.To demonstrate this issue, modify
jme3test.terrain.TerrainGridAlphaMapTestas follows:With
jme3-bullet, theHeightfieldCollisionShapeis visualized as blue wireframe, overlaid on the grass/dirt/rock. Withjme3-jbullet, only the grass/dirt/rock is visible.