public static class SensorsThe sensors that ship.
Remarks
⚠ Delegates and constants, and deliberately nothing that reads a transform. Every interesting sensor is a game's own question — Vixen.Ai cannot see a position, a collider or an inventory, and a library of half-guesses about what a game means by "hungry" would be the behaviour library doc 28 says this must not become. What ships is the two shapes every project needs on day one and the seam they hang on.
Methods (8)
public static ILocalWorldSensor World(WorldReading reading)A local world sensor from a lambda.
public static ILocalWorldSensor Constant(float value)A local world sensor that always answers the same number.
public static ITargetSensor Target(TargetSearch search)A local target sensor from a lambda.
public static ITargetSensor Place(Vector3 position)A local target sensor that always answers the same place.
public static IGlobalWorldSensor GlobalWorld(Func<World, GameTime, float> reading)A global world sensor from a lambda.
public static IGlobalWorldSensor TimeOfDay(float dayLength = 1200)A global world sensor over the clock: the fraction of a day that has passed.
public static IGlobalTargetSensor GlobalTarget(Func<World, GameTime, SensorTarget> search)A global target sensor from a lambda.
public static IGlobalTargetSensor Landmark(Vector3 position)A global target sensor that always answers the same place.
Used by (2)
- SeamTestsVixen.Ai.Nodes.Tests
- VillageVixen.Ai.Nodes.Tests