crashcat docs
    Preparing search index...

    Type Alias CharacterConstraint

    movement constraint derived from a contact, used during constraint solving

    type CharacterConstraint = {
        contact: CharacterContact;
        isSteepSlope: boolean;
        linearVelocity: Vec3;
        planeDistance: number;
        planeNormal: Vec3;
        projectedVelocity: number;
        toi: number;
    }
    Index

    Properties

    contact that generated this constraint

    isSteepSlope: boolean

    is this a steep slope constraint?

    linearVelocity: Vec3

    velocity of contact (with penetration correction)

    planeDistance: number

    plane constraint distance from character center

    planeNormal: Vec3

    plane constraint normal

    projectedVelocity: number

    velocity projected on contact normal

    toi: number

    time of impact (can be negative if penetrating)