- 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:
parent
268a464191
commit
bd613fee2b
@ -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…
x
Reference in New Issue
Block a user