FacingOperation
A class in Root.Township, Alta.Intelligence.
Older prefab scoring component for how much the creature faces the target. In the editor it migrates itself to a SenseOperation.
- Listed in Creatures and AI
- Inherits or implements
TargetOperationComponent
Constructors
| Member | What it is |
|---|---|
FacingOperation() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
Methods
| Member | What it is |
|---|---|
override TargetOperation GetOperation() | Makes a target sense rule on the Facing2D (or Facing3D) sense, mapping the dot product range onto 0 to 1. |
protected override string GetName() | Builds the GameObject name, like Facing XZ 0.8 -> 1 (x1). |
protected override void OnValidate() | Editor: renames the GameObject and migrates the settings to a SenseOperation. |