crashcat docs
    Preparing search index...

    Type Alias GroundInfo

    information about the character's current ground contact

    type GroundInfo = {
        bodyId: BodyId;
        normal: Vec3;
        position: Vec3;
        state: GroundState;
        subShapeId: number;
        velocity: Vec3;
    }
    Index

    Properties

    bodyId: BodyId

    body ID of ground (or INVALID_BODY_ID if in air)

    normal: Vec3

    ground contact normal (average of supporting normals)

    position: Vec3

    position of ground contact

    current ground state

    subShapeId: number

    sub-shape ID of ground contact

    velocity: Vec3

    ground velocity