RandomYRotation
A class in Root.Township, the global namespace.
Generated positioning module that spins the placed object by a random angle around world up.
- Listed in Global namespace: Q to R
- Inherits or implements
GeneratedPositioning.Module
Constructors
| Member | What it is |
|---|---|
RandomYRotation() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override void Modify(ref Vector3 position, ref Quaternion rotation) | Adds a random 0 to 360 degree rotation around the up axis. |