csharp
public readonly record struct RayHitWhat a ray found in a triangle mesh, or did not.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public bool HitWhether it reached a surface.
public float DistanceHow far along the ray, when it did.
public Vector3 PositionWhere it stopped.
public Vector3 NormalThe triangle's geometric normal, facing the ray.
public int TriangleWhich triangle, as an index into the build's list.
public int VisitedHow many nodes the traversal touched — the cost, and worth seeing.
Methods (1)
Used by (3)
- QueriedFieldVixen.Rendering.RayTracing
- TriangleBvhVixen.Rendering.RayTracing
- TriangleBvhTestsVixen.Rendering.RayTracing.Tests