Skip to main content

AgentNavigationSettings

An abstract class in Root.Township, Alta.Intelligence.

Base for a creature action component with movement settings for getting to its target.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private float accelerationBacking field for Acceleration (default 1), copied to the walker when the action starts.
private bool isOvershootingBacking field for IsOvershooting. When on, the walker keeps going past the path end and the action finishes when it stops.
private bool isTargetRemovedOnFailBacking field for IsTargetRemovedOnFail. When on, a failed path drops the target for RemovalSeconds.
private float removalSecondsBacking field for RemovalSeconds (default 5): how long a target is ignored after a failed path.
private float speedBacking field for Speed (default 3), set as the walker's maximum speed when the action starts.

Properties​

MemberWhat it is
float Acceleration { get; }How fast the creature speeds up.
bool IsOvershooting { get; }Whether the creature may move past the target, probably.
bool IsTargetRemovedOnFail { get; }If true, a target that can't be reached is dropped for a while, probably.
float RemovalSeconds { get; }How long a failed target is dropped for. 5 by default.
float Speed { get; }Move speed for this action.