From 7dcde390cdc399420f51c3135a6d4e7a3dd16f18 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 7 Oct 2023 20:19:30 -0400 Subject: [PATCH] Flip Flop --- src/engine/InterestManagement/HeightMap.java | 4 ---- src/engine/gameManager/ZoneManager.java | 3 --- 2 files changed, 7 deletions(-) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index b71a1be5..566977cd 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -339,10 +339,6 @@ public class HeightMap { if (zoneLoc.y > this.fullExtentsY) zoneLoc.setY(this.fullExtentsY); - // Flip Y coordinates - - zoneLoc.setY(this.fullExtentsY - zoneLoc.y); - float xBucket = (zoneLoc.x / this.bucketWidthX); float yBucket = (zoneLoc.y / this.bucketWidthY); diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index 991a2b06..0c6c4a1f 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -305,9 +305,6 @@ public enum ZoneManager { localCoords = new Vector2f(worldVector.x, worldVector.z); localCoords = localCoords.subtract(zoneOrigin); - localCoords.setY((serverZone.bounds.getHalfExtents().y * 2) - localCoords.y); - - // TODO : Make sure this value does not go outside the zone's bounds. return localCoords;