Skip to main content

RandomYRotation

A class in Root.Township, the global namespace.

Generated positioning module that spins the placed object by a random angle around world up.

Constructors​

MemberWhat it is
RandomYRotation()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Methods​

MemberWhat it is
override void Modify(ref Vector3 position, ref Quaternion rotation)Adds a random 0 to 360 degree rotation around the up axis.