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

This commit is contained in:
Stephen Gold 2019-06-18 12:30:54 -07:00
parent 200714e2a8
commit db89c64e4b

View File

@ -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;