From 86124b9a046b180542712ff8fbb51c8f1ecfee81 Mon Sep 17 00:00:00 2001 From: "bre..ns" Date: Mon, 5 Sep 2011 22:27:11 +0000 Subject: [PATCH] terrain.getHeight now scales the result git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8195 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java index 70e92569b..f084e0ee1 100644 --- a/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java +++ b/engine/src/terrain/com/jme3/terrain/geomipmap/TerrainQuad.java @@ -964,7 +964,9 @@ public class TerrainQuad extends Node implements Terrain { // offset float x = (float)(((xz.x - getLocalTranslation().x) / getLocalScale().x) + (float)totalSize / 2f); float z = (float)(((xz.y - getLocalTranslation().z) / getLocalScale().z) + (float)totalSize / 2f); - return getHeight(x, z, xz); + float height = getHeight(x, z, xz); + height *= getLocalScale().y; + return height; } /*