A class in Root.Township, Alta.Intelligence.
Scoring rule that reads a sense with the creature as both requester and target, mapped onto 0 to 1. Made by CreateTargetOperation.Sense with isTarget false.
Constructors
| Member | What it is |
|---|
InverseLerpSenseSelf(Sense sense, float from, float to) | Creates an InverseLerpSenseSelf from sense, from and to. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private float from | Sense value that maps to 0. |
private Sense sense | The sense asset read. |
private float to | Sense value that maps to 1. |
Methods
| Member | What it is |
|---|
override float Evaluate(Agent agent, ITarget target) | Returns the sense's value for the creature itself, inverse-lerped from from to to and clamped. The target is ignored. |
override string ToString() | Returns "Sense Self (name)". |