Skip to main content

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​

MemberWhat it is
AgentRollUpInPlaceSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private float colliderRadiusBacking field for ColliderRadius (default 0.1).
private ActionComponentSet exitToBacking field for ExitTo.
private LayerMask groundLayerBacking field for GroundLayer.
private float standUpSpeedBacking field for StandUpSpeed (default 0.06).

Properties​

MemberWhat 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​

MemberWhat it is
protected override IAction GetAction()Builds the shared AgentRollUpInPlace action, without a target.