Skip to main content

AlignWithPathSlope

A class in Root.Township, the global namespace.

Generation part that turns the object to face along its forest path, tilted with the path's slope.

Constructors​

MemberWhat it is
AlignWithPathSlope()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private AlignWithPathSlope.Hill hillWhich way to face: either, uphill or downhill.

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Faces the object from one path node to the other, including the height change, uphill or downhill as set.