- fix bullet CollisionShapeFactory for new terrain heightfield

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8735 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 268a464191
commit bd613fee2b
  1. 2
      engine/src/bullet/com/jme3/bullet/util/CollisionShapeFactory.java
  2. 2
      engine/src/jbullet/com/jme3/bullet/util/CollisionShapeFactory.java

@ -154,7 +154,7 @@ public class CollisionShapeFactory {
return new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale());
} else if (spatial instanceof TerrainPatch) {
TerrainPatch terrain = (TerrainPatch) spatial;
return new HeightfieldCollisionShape(terrain.getHeightmap().array(), terrain.getLocalScale());
return new HeightfieldCollisionShape(terrain.getHeightmap(), terrain.getLocalScale());
} else if (spatial instanceof Geometry) {
return createSingleMeshShape((Geometry) spatial, spatial);
} else if (spatial instanceof Node) {

@ -155,7 +155,7 @@ public class CollisionShapeFactory {
return new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale());
} else if (spatial instanceof TerrainPatch) {
TerrainPatch terrain = (TerrainPatch) spatial;
return new HeightfieldCollisionShape(terrain.getHeightmap().array(), terrain.getLocalScale());
return new HeightfieldCollisionShape(terrain.getHeightmap(), terrain.getLocalScale());
} else if (spatial instanceof Geometry) {
return createSingleMeshShape((Geometry) spatial, spatial);
} else if (spatial instanceof Node) {

Loading…
Cancel
Save