- fix bullet CollisionShapeFactory for new terrain heightfield

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8735 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-11-20 11:50:18 +00:00
parent 268a464191
commit bd613fee2b
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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) {