Skip to main content

AgentFaceTargetSettings

A class in Root.Township, Alta.Intelligence.

Settings for ActiveFaceTarget: turn the creature until the target is well inside its view cone. Server only; the creature must implement IHasViewCone.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float targetRatioBacking field for TargetRatio (0 to 1, default 0.5).

Properties​

MemberWhat it is
float TargetRatio { get; }The action finishes once the target is in the view cone at this ratio or less (0 is dead centre, 1 the edge).

Methods​

MemberWhat it is
protected override IAction GetAction()Builds the shared ActiveFaceTarget action, which uses a target.