Facing2DSense
A class in Root.Township, Alta.Intelligence.
Sense asset giving how much the creature faces a target on the flat: 1 straight ahead, 0 to the side, -1 behind.
- Listed in Creatures and AI
- Inherits or implements
Sense - Derived types
Facing2DSense.Create - Nested types
Create - Documented in Targets and senses
Constructors
| Member | What it is |
|---|---|
Facing2DSense() | 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 flat forward and the flat direction to the target. |