Vixen
c7401864
csharp
public readonly record struct SensorTarget

Where something is, or what it is, or neither.

Read the guide page for this →

Remarks

⚠ A position and an entity, and Found separate from both. "The nearest apple" is an entity that has a position; "the town square" is a position that is not an entity; and "there is no apple" is neither — which a zero vector cannot say and Null can only half say. A sensor that reported a bare Vector3 would make an agent walk confidently to the origin of the world.

Fields and properties (4)

  • public bool Found

    Whether the sensor found anything at all.

  • public Vector3 Position

    Where it is.

  • public Entity Entity

    What it is, when it is a thing rather than a place.

  • public static SensorTarget None

    Nothing was found.

Methods (3)

Used by (14)

  • CentreSensorVixen.Ai.Nodes
  • ConstantTargetSensorVixen.Ai
  • DelegateAgentTargetSensorVixen.Ai
  • DelegateGlobalTargetSensorVixen.Ai
  • DistanceSensorVixen.Ai.Nodes
  • IGlobalTargetSensorVixen.Ai
  • ITargetSensorVixen.Ai
  • LandmarkSensorVixen.Ai
  • NavMeshSensorVixen.Ai.Nodes
  • NearestPerceivedSensorVixen.Ai.Perception
  • NearestSensorVixen.Ai.Nodes
  • SensedTargetSensorVixen.Ai
  • SensorSetVixen.Ai
  • SensorsVixen.Ai