Vixen
02b45cc4
csharp
public readonly record struct ShapeCastHit

Where a swept shape first met a body.

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

Fields and properties (4)

  • public BodyHandle Body

    What it hit.

  • public Vector3 Position

    Where they touched, in world space.

  • public Vector3 Normal

    The surface normal there.

  • public float Fraction

    How far along the sweep, from 0 to 1. Zero means the shape was already overlapping when the sweep started, and Normal is then the separating direction rather than a surface normal.

Methods (1)

  • public ShapeCastHit(BodyHandle Body, Vector3 Position, Vector3 Normal, float Fraction)

    Where a swept shape first met a body.

Used by (3)

  • ArenaCameraOcclusionThirdPersonShooter
  • PhysicsQueryTestsVixen.Physics.Tests
  • PhysicsWorldVixen.Physics