AlignWithNormalModifier
A class in Root.Township, the global namespace.
World generation spawn modifier that rotates spawned objects to face along the ground normal, weighted by how flat the ground is.
- Listed in Global namespace: A to B
- Inherits or implements
SpawnModifierSpawnParameters - Derived types
AlignWithNormalModifier.Create - Nested types
Create
Constructors
| Member | What it is |
|---|---|
AlignWithNormalModifier() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Methods
| Member | What it is |
|---|---|
override void Filter(ForestFillCore.Setup setup, ref SpawnParameters point, ref float weight) | Rotates the spawn point to look along the normal (or point its Y axis along it), blended by the curve weight. |