Vixen
caa30e12
csharp
public readonly record struct QueryPoint

One candidate answer to "where should I stand".

Read the guide page for this →

Remarks

⚠ A position and an entity, not one or the other. "Stand behind that crate" and "shoot at that guard" are the same query with different tests over it, and a candidate that could only be a point would make the second one a second machine. A generator that made it out of nothing leaves the entity null, and every test that needs one fails such a point rather than guessing.

Fields and properties (2)

  • public Vector3 Position

    Where it is, in world space.

  • public Entity Entity

    What it came from, when a generator made it out of one. Otherwise null.

Methods (2)

  • public QueryPoint(Vector3 Position, Entity Entity = default(Entity))

    One candidate answer to "where should I stand".

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (30)

  • CompositeGeneratorVixen.Ai
  • ConeGeneratorVixen.Ai
  • CurrentLocationGeneratorVixen.Ai
  • DelegateQueryTestVixen.Ai
  • DistanceQueryTestVixen.Ai
  • DonutGeneratorVixen.Ai
  • DotQueryTestVixen.Ai
  • EntityGeneratorVixen.Ai.Nodes
  • EnvironmentQueryVixen.Ai
  • GridGeneratorVixen.Ai
  • IQueryGeneratorVixen.Ai
  • IQueryTestVixen.Ai
  • OverlapQueryTestVixen.Ai.Nodes
  • PathQueryTestVixen.Ai.Nodes
  • ProjectQueryTestVixen.Ai.Nodes
  • QueryContentTestsVixen.Ai.Tests
  • QueryGeneratorTestsVixen.Ai.Tests
  • QueryGeneratorsVixen.Ai
  • QueryPreviewTestsVixen.Ai.Diagnostics.Tests
  • QueryResultsVixen.Ai
  • QueryRunnerVixen.Ai.Nodes
  • QueryScorerExitCriteriaTestsVixen.Ai.Tests
  • QueryTestVixen.Ai
  • QueryTestPurposeTestsVixen.Ai.Tests
  • RunQueryNodeTestsVixen.Ai.Nodes.Tests
  • ScoredQueryPointVixen.Ai
  • TraceQueryTestVixen.Ai.Nodes
  • UnresolvedVixen.Ai
  • WorldQueryTestsVixen.Ai.Nodes.Tests
  • QueryDocumentTestsVixen.Editor.AssetEditors.Tests