csharp
public readonly record struct ShapeCastHitWhere 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 BodyWhat it hit.
public Vector3 PositionWhere they touched, in world space.
public Vector3 NormalThe surface normal there.
public float FractionHow 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