csharp
public sealed class DistanceUtilityInputHow far the agent is from what a key names, as a fraction of a maximum.
Remarks
⚠ The position lookup is a delegate, and that is the layering. Where an entity is lives in Vixen.Engine, which this assembly may not reference — doc 37's whole argument for putting the planners in Core/. A game or Vixen.Ai.Nodes passes AgentTarget.TryPositionOf and gets the entity form; a game with no transforms at all passes nothing and gets the Vector3 form, which still works.
Methods (2)
public DistanceUtilityInput(BlackboardKey key, float range = 20, DistanceUtilityInput.PositionLookup? positionOf = null)How far the agent is from what a key names, as a fraction of a maximum.
public float Read(in AgentContext context)Reads the world.
Used by (2)
- UtilityInputTestsVixen.Ai.Tests
- UtilitySetContentCompilerVixen.Ai