forked from MagicBane/Server
Comment cleanup
This commit is contained in:
@@ -107,10 +107,13 @@ 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 terrainOffset = ZoneManager.worldToZoneOffset(world_loc, terrainZone);
|
|
||||||
Vector2f parentLoc = ZoneManager.worldToTerrainSpace(world_loc, parentZone);
|
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);
|
float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc);
|
||||||
interpolatedChildHeight += terrainZone.global_height;
|
interpolatedChildHeight += terrainZone.global_height;
|
||||||
|
|||||||
Reference in New Issue
Block a user