jme3-bullet fix for issue #1125 (physics shapes don't match TerrainQuad)

accellbaker
Stephen Gold 6 years ago
parent df02333cd2
commit 2cd3dac543
  1. 2
      jme3-bullet/src/main/java/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java

@ -147,7 +147,7 @@ public class HeightfieldCollisionShape extends CollisionShape {
this.maxHeight = max;
this.upAxis = 1;
this.flipQuadEdges = false;
flipQuadEdges = true;
heightStickWidth = (int) FastMath.sqrt(heightfieldData.length);
heightStickLength = heightStickWidth;

Loading…
Cancel
Save