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.
- Listed in Global namespace: Q to R
- Inherits or implements
GeneratablePart - Attributes
AddComponentMenu
Constructors
| Member | What it is |
|---|---|
RandomRotationPart() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
Methods
| Member | What it is |
|---|---|
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain) | Rotates the transform by a random 0 to 360 degrees around localAxis. |