crashcat docs
    Preparing search index...

    Type Alias ContactSettings

    Settings for a contact constraint, passed to contact listener callbacks. A

    Listener can modify these settings to customize the contact behavior.

    type ContactSettings = {
        combinedFriction: number;
        combinedRestitution: number;
        invInertiaScale1: number;
        invInertiaScale2: number;
        invMassScale1: number;
        invMassScale2: number;
        isSensor: boolean;
        relativeAngularSurfaceVelocity: Vec3;
        relativeLinearSurfaceVelocity: Vec3;
    }
    Index

    Properties

    combinedFriction: number

    combined friction coefficient for the contact

    combinedRestitution: number

    combined restitution (bounciness) for the contact

    invInertiaScale1: number

    scale factor for body 1's inverse inertia (default 1.0)

    invInertiaScale2: number

    scale factor for body 2's inverse inertia (default 1.0)

    invMassScale1: number

    scale factor for body 1's inverse mass (default 1.0)

    invMassScale2: number

    scale factor for body 2's inverse mass (default 1.0)

    isSensor: boolean

    if true, contact is treated as a sensor (no physical response)

    relativeAngularSurfaceVelocity: Vec3

    relative angular surface velocity (body 2 relative to body 1)

    relativeLinearSurfaceVelocity: Vec3

    relative linear surface velocity (body 2 relative to body 1)