From 6494e07e9ea245fe4a1b1d3cd82f4dc44cf6c007 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 10 Oct 2023 12:34:21 -0400 Subject: [PATCH] Test baseline --- src/engine/InterestManagement/Terrain.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 9721afac..7e053288 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -99,22 +99,13 @@ public class Terrain { // Transform world loc into zone space coordinate system Vector2f terrainLoc = ZoneManager.worldToZoneSpace(worldLoc, terrainZone); - Vector2f parentLoc = ZoneManager.worldToZoneSpace(worldLoc, parentZone); // Interpolate height for this position in terrain float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc); interpolatedChildHeight += terrainZone.worldAltitude; - // Interpolate height for this position in parent - - float interpolatedParentTerrainHeight = parentZone.terrain.getInterpolatedTerrainHeight(parentLoc); - interpolatedParentTerrainHeight += parentZone.worldAltitude; - - // Blend between heights - - return interpolatedChildHeight + interpolatedParentTerrainHeight * (1 - terrainZone.terrain.terrainBlend(terrainLoc)); - + return interpolatedChildHeight; } public static float getWorldHeight(Vector3fImmutable worldLoc) {