From db9e9505587aeac17d5e8a440e629d5fef5793d9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 15 Oct 2023 14:30:58 -0400 Subject: [PATCH] Comment cleanup --- src/engine/InterestManagement/Terrain.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 9801ac75..58513006 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -107,10 +107,13 @@ public class Terrain { // Transform world loc into zone space coordinate system Vector2f terrainLoc = ZoneManager.worldToTerrainSpace(world_loc, terrainZone); - Vector2f terrainOffset = ZoneManager.worldToZoneOffset(world_loc, terrainZone); Vector2f parentLoc = ZoneManager.worldToTerrainSpace(world_loc, parentZone); - // Interpolate height for this position in terrain + // Offset from origin needed for blending function + + Vector2f terrainOffset = ZoneManager.worldToZoneOffset(world_loc, terrainZone); + + // Interpolate height for this position in both terrains float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc); interpolatedChildHeight += terrainZone.global_height;