Skip to content

HeightfieldCollisionShape is invisible in jme3-jbullet with setDebugEnabled()  #1129

@stephengold

Description

@stephengold

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PhysicsIssues with all kinds of Physics and their Bindings

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions