Vixen
caa30e12
csharp
public static class QueryTests

The tests that need nothing but arithmetic.

Read the guide page for this →

Remarks

Two of doc 37 § P8's seven. The other five — trace, pathfinding, overlap, project and tag — need a physics world, a navmesh or a gameplay tag, none of which Vixen.Ai may see, so they live in Vixen.Ai.Nodes beside the other nodes that touch the world.

Methods (3)

  • public static IQueryTest From(string name, QueryReading reading)

    A test from a lambda.

  • public static IQueryTest Distance(QueryDistanceFrom from = Querier)

    How far the point is from something, in metres.

  • public static IQueryTest Dot(bool towardContext = true)

    How far in front of the agent the point is: the cosine of the angle between the agent's look direction and the direction to the point, in [-1,1].

Used by (7)

  • QueryContentCompilerVixen.Ai
  • QueryContentTestsVixen.Ai.Tests
  • QueryPreviewTestsVixen.Ai.Diagnostics.Tests
  • QueryScorerExitCriteriaTestsVixen.Ai.Tests
  • QueryTestPurposeTestsVixen.Ai.Tests
  • RunQueryNodeTestsVixen.Ai.Nodes.Tests
  • WorldQueryTestsVixen.Ai.Nodes.Tests