AgentCrawlSettings
A class in Root.Township, Alta.Intelligence.
Action settings for a creature crawling over surfaces for a random duration (ActiveCrawl). Sits under an action set on the creature prefab.
- Listed in Creatures and AI
- Inherits or implements
RandomTimedActionComponent - Derived types
ActiveCrawl
Constructors
| Member | What it is |
|---|---|
AgentCrawlSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
8 private and internal fields
| Member | What it is |
|---|---|
private float colliderRadius | Backing field for ColliderRadius: radius used for crawl surface and obstacle checks. |
private LayerMask collisionCheck | Backing field for CollisionCheck: layers that block the crawl. |
private int raycastEveryXFrames | Backing field for RaycastEveryXFrames: how many frames between surface raycasts. |
private ActionComponentSet recoverFromFalling | Backing field for RecoverFromFalling: action set used when the crawler loses the surface. |
private float uprightRotationSpeed | Backing field for UprightRotationSpeed. |
private float walkingSpeed | Backing field for WalkingSpeed. |
private LayerMask walkOn | Backing field for WalkOn: layers the agent can crawl on. |
private float walkRotationSpeed | Backing field for WalkRotationSpeed. |
Properties
| Member | What it is |
|---|---|
float ColliderRadius { get; } | Radius used for the surface and collision checks around the body. |
LayerMask CollisionCheck { get; } | Layers that block the crawl. |
int RaycastEveryXFrames { get; } | How many frames between the forward surface raycasts. |
ActionComponentSet RecoverFromFalling { get; } | Action set switched to when the creature loses the surface, if set. |
float UprightRotationSpeed { get; } | How fast it turns to match the surface. |
float WalkingSpeed { get; } | Crawl speed in metres per second. |
LayerMask WalkOn { get; } | Layers it can crawl on. |
float WalkRotationSpeed { get; } | How fast it turns while walking. |
Methods
| Member | What it is |
|---|---|
protected override IAction GetAction() | Creates the ActiveCrawl action without a target. |