farm plot radius work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-05-28 21:15:59 -04:00
parent 6b335310e8
commit 8bffe711ae
2 changed files with 5 additions and 4 deletions

View File

@ -2041,6 +2041,7 @@ Town layout non-statically generates farm plots
Y-aligned prism meshgen Y-aligned prism meshgen
Rendering prism regions Rendering prism regions
Utilities for turning mesh gen algos into renderable entities Utilities for turning mesh gen algos into renderable entities
Back off farm plots from roads by road radius

View File

@ -270,13 +270,13 @@ public class TownLayout {
} }
//this is +0,+0 //this is +0,+0
plotPoint1.set(currPoint); plotPoint1.set(currPoint).add(Road.DEFAULT_RADIUS,0,Road.DEFAULT_RADIUS);
scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 1),0,TOWN_LAYOUT_SCALER * (z + 0)); scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 1),0,TOWN_LAYOUT_SCALER * (z + 0));
plotPoint2 = TownLayout.getTownCenter(realm, scanPoint); plotPoint2 = TownLayout.getTownCenter(realm, scanPoint).add(-Road.DEFAULT_RADIUS,0,Road.DEFAULT_RADIUS);
scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 1),0,TOWN_LAYOUT_SCALER * (z + 1)); scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 1),0,TOWN_LAYOUT_SCALER * (z + 1));
plotPoint3 = TownLayout.getTownCenter(realm, scanPoint); plotPoint3 = TownLayout.getTownCenter(realm, scanPoint).add(-Road.DEFAULT_RADIUS,0,-Road.DEFAULT_RADIUS);
scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 0),0,TOWN_LAYOUT_SCALER * (z + 1)); scanPoint.set(townCenter).add(TOWN_LAYOUT_SCALER * (x + 0),0,TOWN_LAYOUT_SCALER * (z + 1));
plotPoint4 = TownLayout.getTownCenter(realm, scanPoint); plotPoint4 = TownLayout.getTownCenter(realm, scanPoint).add(Road.DEFAULT_RADIUS,0,-Road.DEFAULT_RADIUS);
if( if(
plotPoint1.distance(townCenter) > TOWN_CENTER_RADIUS && plotPoint1.distance(townCenter) > TOWN_CENTER_RADIUS &&
plotPoint2.distance(townCenter) > TOWN_CENTER_RADIUS && plotPoint2.distance(townCenter) > TOWN_CENTER_RADIUS &&