From 7d5adb24c3e231f9f2448cc659c367a6f3b729c0 Mon Sep 17 00:00:00 2001 From: "ant..om" Date: Sat, 11 Jun 2011 06:34:45 +0000 Subject: [PATCH] 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 --- engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java index 52d7db166..98d9beef0 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainGrid.java +++ b/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);