csharp
public readonly record struct SensorTargetWhere something is, or what it is, or neither.
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 FoundWhether the sensor found anything at all.
public Vector3 PositionWhere it is.
public Entity EntityWhat it is, when it is a thing rather than a place.
public static SensorTarget NoneNothing was found.
Methods (3)
public SensorTarget(bool Found, Vector3 Position, Entity Entity = default(Entity))Where something is, or what it is, or neither.
public static SensorTarget At(Vector3 position)A place.
public static SensorTarget Of(Entity entity, Vector3 position)A thing, and where it is.
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