Skip to main content

RandomRotationPart

A class in Root.Township, the global namespace.

Generation part that spins its object by a random angle around a local axis when the static generation runs.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Vector3 localAxisLocal axis to spin around.

Methods​

MemberWhat it is
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain)Rotates the transform by a random 0 to 360 degrees around localAxis.