RandomRotationModifier
A class in Root.Township, the global namespace.
Forest fill modifier asset that spins each spawn around Y by a random angle, and can flip it upside down half the time.
- Listed in Global namespace: Q to R
- Inherits or implements
SpawnModifierSpawnParameters - Derived types
RandomRotationModifier.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
RandomRotationModifier() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|---|
override void Filter(ForestFillCore.Setup setup, ref SpawnParameters point, ref float weight) | Adds a random Y rotation, plus a 180 degree X flip on half the rolls if flippable. |