AlignWithTerrainSlope
A class in Root.Township, the global namespace.
Generation part that points the object's forward axis along the terrain normal at its position.
- Listed in Global namespace: A to B
- Inherits or implements
GeneratablePart - Attributes
AddComponentMenu
Constructors
| Member | What it is |
|---|---|
AlignWithTerrainSlope() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Methods
| Member | What it is |
|---|---|
override void GenerateStatic(GenerationCore core, bool isModifyingTerrain) | Sets the rotation to look along the terrain normal under the object. |