csharp
public readonly record struct RayHitWhere a ray met a body.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (5)
public BodyHandle BodyWhat it hit.
public Vector3 PositionWhere, in world space.
public Vector3 NormalThe surface normal there, pointing out of the body.
public float DistanceHow far along the ray, in metres.
public float FractionHow far along the ray, from 0 at its origin to 1 at its end.
Methods (1)
public RayHit(BodyHandle Body, Vector3 Position, Vector3 Normal, float Distance, float Fraction)Where a ray met a body.
Used by (6)
- ArenaCameraOcclusionThirdPersonShooter
- WeaponFireThirdPersonShooter
- HeightFieldShapeTestsVixen.Physics.Tests
- LagCompensationTestsVixen.Net.Physics.Tests
- PhysicsQueryTestsVixen.Physics.Tests
- PhysicsWorldVixen.Physics