|
|
|
@ -87,14 +87,12 @@ public class Terrain {
@@ -87,14 +87,12 @@ public class Terrain {
|
|
|
|
|
public static float getWorldHeight(Zone currentZone, Vector3fImmutable worldLoc) { |
|
|
|
|
|
|
|
|
|
Zone terrainZone; |
|
|
|
|
Zone parentZone; |
|
|
|
|
|
|
|
|
|
// Retrieve the next zone with a heightmap attached.
|
|
|
|
|
// Zones without a heightmap use the next zone up the
|
|
|
|
|
// tree to calculate heights from.
|
|
|
|
|
|
|
|
|
|
terrainZone = getNextZoneWithTerrain(currentZone); |
|
|
|
|
parentZone = getNextZoneWithTerrain(currentZone.parent); |
|
|
|
|
|
|
|
|
|
// Transform world loc into zone space coordinate system
|
|
|
|
|
|
|
|
|
|