farm plot radius work
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
6b335310e8
commit
8bffe711ae
@ -2041,6 +2041,7 @@ Town layout non-statically generates farm plots
|
||||
Y-aligned prism meshgen
|
||||
Rendering prism regions
|
||||
Utilities for turning mesh gen algos into renderable entities
|
||||
Back off farm plots from roads by road radius
|
||||
|
||||
|
||||
|
||||
|
||||
@ -270,13 +270,13 @@ public class TownLayout {
|
||||
}
|
||||
|
||||
//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));
|
||||
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));
|
||||
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));
|
||||
plotPoint4 = TownLayout.getTownCenter(realm, scanPoint);
|
||||
plotPoint4 = TownLayout.getTownCenter(realm, scanPoint).add(Road.DEFAULT_RADIUS,0,-Road.DEFAULT_RADIUS);
|
||||
if(
|
||||
plotPoint1.distance(townCenter) > TOWN_CENTER_RADIUS &&
|
||||
plotPoint2.distance(townCenter) > TOWN_CENTER_RADIUS &&
|
||||
|
||||
Loading…
Reference in New Issue
Block a user