Documentation
    Preparing search index...

    Interface ShapeCastHit

    One impact of a swept shape (§30, §37 shapeCast).

    interface ShapeCastHit {
        body: PhysicsBodyHandle;
        collider: PhysicsColliderHandle;
        distance: number;
        normal: Vector3;
        point: Vector3;
    }

    Hierarchy (View Summary)

    Index

    The body owning QueryHit.collider.

    The collider that was hit.

    distance: number

    Distance the shape travelled before touching, in world units. 0 means the shape was already overlapping when the sweep started.

    normal: Vector3

    Unit contact normal at the impact, in world space.

    point: Vector3

    The witness point on the hit collider, in world space.