Skip to main content

AlignWithTerrainSlope

A class in Root.Township, the global namespace.

Generation part that points the object's forward axis along the terrain normal at its position.

Constructors​

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

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Sets the rotation to look along the terrain normal under the object.