Facing3DSense
A class in Root.Township, Alta.Intelligence.
Sense asset giving how much the creature faces a target in 3D: 1 straight ahead, -1 behind.
- Listed in Creatures and AI
- Inherits or implements
Sense - Derived types
Facing3DSense.Create - Nested types
Create - Documented in Targets and senses
Constructors
| Member | What it is |
|---|---|
Facing3DSense() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Methods
| Member | What it is |
|---|---|
override float Get(IAgent requester, ITarget target) | Dot product of the creature's forward and the direction to the target, height included. |