Browse Source

Height from zone center.

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
31ba1f2c4c
  1. 2
      src/engine/InterestManagement/Terrain.java

2
src/engine/InterestManagement/Terrain.java

@ -120,7 +120,7 @@ public class Terrain {
// Transform world loc into zone space coordinate system // Transform world loc into zone space coordinate system
Vector2f terrainLoc = ZoneManager.worldToTerrainSpace(world_loc, terrainZone); Vector2f terrainLoc = ZoneManager.worldToTerrainSpace(world_loc, terrainZone);
Vector2f parentLoc = ZoneManager.worldToTerrainSpace(parentZone.getLoc(), parentZone); Vector2f parentLoc = ZoneManager.worldToTerrainSpace(terrainZone.getLoc(), parentZone);
// Offset from origin needed for blending function // Offset from origin needed for blending function

Loading…
Cancel
Save