csharp
public readonly record struct NavRaycastHitWhat 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 HitWhether a wall stopped it.
public float DistanceHow far along the segment it got, from 0 to 1.
public Vector3 PositionWhere it stopped.
public Vector3 NormalThe wall's normal, facing back towards the walkable side, if it hit one.
public NavPolyRef LastPolyThe 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