A class in Root.Township, the global namespace.
Forest spawn filter that weights points by their height above the nearest path and can pull them towards the path's height.
Constructors
| Member | What it is |
|---|
ElevationFromPath() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private EdgeType edgeType | Which edge types count as path. |
private AnimationCurve elevationMultiplier | Curve from height above the path to a weight multiplier. |
private float lerpHeight | How far (0 to 1) to move the point's height to the path's height. |
Methods
| Member | What it is |
|---|
override void Filter(ForestFillCore.Setup setup, ref PointNormal pointNormal, ref float weight) | Finds the nearest path edge, scales the weight by the curve at the height difference, and lerps the point's height towards the path. |