Skip to main content

AgentCircleTargetSettings

A class in Root.Township, Alta.Intelligence.

Settings for ActiveCircleTarget: the agent circles its target at a set distance on a random timer.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float circlingCalculationDistanceBacking field for CirclingCalculationDistance.
private float maxDistanceFromTargetSquaredBacking field for MaxDistanceFromTargetSquared.
private float targetDistanceBacking field for TargetDistance.

Properties​

MemberWhat it is
float CirclingCalculationDistance { get; }Distance moved around the circle per second, also the reach of the path check.
float MaxDistanceFromTargetSquared { get; }Squared distance from the target past which circling finishes.
float TargetDistance { get; }Radius to circle the target at.

Methods​

MemberWhat it is
protected override IAction GetAction()Builds the ActiveCircleTarget action, using a target.