VelocityLimit
A class in Root.Township, Alta.Intelligence.
Scoring rule on the creature's own speed: one value while its rigidbody is slower than a limit, another when at or above it. Made by CreateTargetOperation.VelocityLimit.
- Listed in Creatures and AI
- Inherits or implements
TargetOperation
Constructors
| Member | What it is |
|---|---|
VelocityLimit(float maximimumVelocitySquared, float withinLimitValue, float outsideLimitValue) | Creates a VelocityLimit from maximimumVelocitySquared, withinLimitValue and outsideLimitValue. |
Fields
3 private and internal fields
Methods
| Member | What it is |
|---|---|
override float Evaluate(Agent agent, ITarget target) | Returns withinLimitValue if the rigidbody's squared speed is below the limit, else outsideLimitValue. |