Skip to main content

Node

A class in Root.Township, Alta.Forests.

A point in the forest generator's graph, with a radius. Paths join it to other nodes, and it can be used for A* searches.

Constructors​

MemberWhat it is
Node(int index, Vector2 position, float height, float radius)Creates a Node from index, position, height and radius.

Properties​

MemberWhat it is
float Radius { get; private set; }The node's radius.

Methods​

MemberWhat it is
bool IsOn(SpaceType type)True if the space to the right of any of its paths has any of the given SpaceType flags.

Used in​

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