A class in Root.Township, Alta.Intelligence.
Scoring rule that reads a sense of the target, mapped onto 0 to 1. Made by CreateTargetOperation.Sense; most scoring rules on prefabs end up as this.
Constructors
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. Lower than from gives "less is better". |
Methods
| Member | What it is |
|---|
override float Evaluate(Agent agent, ITarget target) | Returns the sense's value for the target, inverse-lerped from from to to and clamped to 0 to 1. |
override string ToString() | Returns "Sense (name)". |