WallAlignedDisplay
A class in Root.Township, Alta.Caves.Displays.
Cave chunk display that places objects along walls, facing away from nearby solid cells of a floor plan layer.
- Listed in World generation
- Inherits or implements
BasicObjectDisplay - Nested types
Point
Constructors
| Member | What it is |
|---|---|
WallAlignedDisplay() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
11 private and internal fields
| Member | What it is |
|---|---|
private List<WallAlignedDisplay.Point> checkPoints | Precomputed offsets, directions and weights used to sense walls. |
private float checkRadius | Radius in cells to look for walls. |
private MapChunkLayer floor | The floor plugin's layer, used to find floor height. |
private float floorOffset | Height offset added to the floor height. |
private Plugin floorPlan | Plugin whose layer marks solid areas (walls). |
private MapChunkLayer floorPlanLayer | This chunk's layer for floorPlan. |
private int floorPlanY | Y slice of the floor plan layer to read. |
private float floorThreshold | Floor layer value below which a cell counts as open. |
private LayerMask hitMask | Layers the wall raycast can hit. |
private float minimumDistance | Half the length of the raycast that must hit a wall; 0 skips the check. |
private float threshold | Total wall weight needed before an object is placed. |