Skip to main content

ForestCliffEvaluator.CliffPoint

A struct in Root.Township, Alta.Forests.

A sample point along a cliff found during forest generation, stepped along each cliff path at a fixed spacing.

Constructors​

MemberWhat it is
CliffPoint(List<Path> cliff, int pathIndex, Vector3 point, Vector2 direction, float height, float ray)Creates a ForestCliffEvaluator.CliffPoint from cliff, pathIndex, point, direction, height and ray.

Fields​

MemberWhat it is
List<Path> cliffThe chain of paths that make up this cliff.
Vector2 directionFlat direction facing out from the cliff at this point.
float heightHeight drop of the cliff at this point.
int pathIndexIndex of the path in cliff this point lies on.
Vector3 positionWorld position of the sample.
float rayHorizontal width of the cliff slope at this point.

Used in​

Members of other types that take, return or hold a CliffPoint: