navmesh gen heightscale fix

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9092 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
bre..ns 13 years ago
parent 1625841c47
commit 209d5d6082
  1. 2
      sdk/jme3-navmesh-gen/src/com/jme3/gde/nmgen/NavMeshGenerator.java

@ -161,7 +161,7 @@ public class NavMeshGenerator implements Savable {
for (int z = 0; z < side; z++) { for (int z = 0; z < side; z++) {
for (int x = 0; x < side; x++) { for (int x = 0; x < side; x++) {
vertices[i++] = x + offsetX; vertices[i++] = x + offsetX;
vertices[i++] = heights[z * side + x] * scale.y; vertices[i++] = heights[z * side + x];// * scale.y;
vertices[i++] = z + offsetZ; vertices[i++] = z + offsetZ;
} }
} }

Loading…
Cancel
Save