Documentation
    Preparing search index...

    Interface WorldShapeCastHit

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

    interface WorldShapeCastHit {
        body: RigidBody;
        collider: Collider;
        distance: number;
        normal: Vector3;
        point: Vector3;
    }

    Hierarchy (View Summary)

    Index
    body: RigidBody

    The body owning WorldQueryHit.collider.

    collider: Collider

    The collider that was hit, as the §6a component.

    distance: number

    Distance the shape travelled before touching, in world units.

    normal: Vector3

    Unit contact normal at the impact, in world space.

    point: Vector3

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