bugfix: terrainQuads were translated using a constant 2, now it uses localScale isntead

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7576 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
ant..om 14 years ago
parent 36db85980b
commit 7d5adb24c3
  1. 2
      engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java

@ -229,7 +229,7 @@ public class TerrainGrid extends TerrainQuad {
attachQuadAt(q4, 4);
this.currentCell = cam;
this.setLocalTranslation(cam.mult(2 * this.quadSize));
this.setLocalTranslation(cam.mult(this.getLocalScale().mult(this.quadSize)));
if (control != null) {
control = new RigidBodyControl(new HeightfieldCollisionShape(getHeightMap(), getLocalScale()), 0);

Loading…
Cancel
Save