Vixen
02b45cc4
csharp
public readonly record struct NavRaycastHit

What a walk across the surface ran into.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • public bool Hit

    Whether a wall stopped it.

  • public float Distance

    How far along the segment it got, from 0 to 1.

  • public Vector3 Position

    Where it stopped.

  • public Vector3 Normal

    The wall's normal, facing back towards the walkable side, if it hit one.

  • public NavPolyRef LastPoly

    The last polygon it was on, which is where an agent now stands.

Methods (1)

  • public NavRaycastHit(bool Hit, float Distance, Vector3 Position, Vector3 Normal, NavPolyRef LastPoly)

    What a walk across the surface ran into.

Used by (6)

  • QueryBenchmarksVixen.Benchmarks.Navigation
  • NavMeshQueryVixen.Navigation
  • NavMeshQueryTestsVixen.Navigation.Tests
  • NavigationAllocationTestsVixen.Navigation.Tests
  • OffMeshConnectionTestsVixen.Navigation.Tests
  • PathCorridorVixen.Navigation