Vixen
02b45cc4
csharp
public readonly record struct RayHit

Where 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 Body

    What it hit.

  • public Vector3 Position

    Where, in world space.

  • public Vector3 Normal

    The surface normal there, pointing out of the body.

  • public float Distance

    How far along the ray, in metres.

  • public float Fraction

    How far along the ray, from 0 at its origin to 1 at its end.

Methods (1)

Used by (6)

  • ArenaCameraOcclusionThirdPersonShooter
  • WeaponFireThirdPersonShooter
  • HeightFieldShapeTestsVixen.Physics.Tests
  • LagCompensationTestsVixen.Net.Physics.Tests
  • PhysicsQueryTestsVixen.Physics.Tests
  • PhysicsWorldVixen.Physics