Kaynağa Gözat

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

Stephen Gold 6 yıl önce
ebeveyn
işleme
db89c64e4b

+ 1 - 1
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;