- fix scaling in terrain compound generation

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8738 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-11-20 12:41:49 +00:00
parent 197bba7fe8
commit 397c2acec8
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ public class CollisionShapeFactory {
}
TerrainQuad terrain = (TerrainQuad) spatial;
Transform trans = getTransform(spatial, realRootNode);
shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale()),
shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), trans.getScale()),
trans.getTranslation(),
trans.getRotation().toRotationMatrix());
} else if (spatial instanceof Node) {

View File

@ -96,7 +96,7 @@ public class CollisionShapeFactory {
}
TerrainQuad terrain = (TerrainQuad) spatial;
Transform trans = getTransform(spatial, realRootNode);
shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), terrain.getLocalScale()),
shape.addChildShape(new HeightfieldCollisionShape(terrain.getHeightMap(), trans.getScale()),
trans.getTranslation(),
trans.getRotation().toRotationMatrix());
} else if (spatial instanceof Node) {