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
| Member | What it is |
|---|
AgentFaceTargetSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private float targetRatio | Backing field for TargetRatio (0 to 1, default 0.5). |
Properties
| Member | What 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
| Member | What it is |
|---|
protected override IAction GetAction() | Builds the shared ActiveFaceTarget action, which uses a target. |