AgentRollUpInPlaceSettings
A class in Root.Township, Alta.Intelligence.
Settings for AgentRollUpInPlace: turn the creature's body upright on the nearest ground surface, then optionally switch action set. Server only.
Constructors
| Member | What it is |
|---|
AgentRollUpInPlaceSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private float colliderRadius | Backing field for ColliderRadius (default 0.1). |
private ActionComponentSet exitTo | Backing field for ExitTo. |
private LayerMask groundLayer | Backing field for GroundLayer. |
private float standUpSpeed | Backing field for StandUpSpeed (default 0.06). |
Properties
| Member | What it is |
|---|
float ColliderRadius { get; } | Radius of the body used to find the ground. The search reaches five times this. |
ActionComponentSet ExitTo { get; } | Action set the creature switches to when it's upright. Null keeps the current set. |
LayerMask GroundLayer { get; } | Layers searched for the surface to stand up on. |
float StandUpSpeed { get; } | Lerp rate per second for turning the body to the upright rotation. |
Methods