mwg API
    Preparing search index...

    Interface ClothSpriteOptions

    Mesh density and simulation tuning for ClothSprite; the cloth spans the texture.

    interface ClothSpriteOptions {
        damping?: number;
        gravity?: { x: number; y: number };
        intent?: MotionIntent;
        segmentsX?: number;
        segmentsY?: number;
        stiffness?: number;
        wind?: { x: number; y: number };
    }
    Index
    damping?: number

    share of velocity lost per update, 0 to 1; default 0.02

    gravity?: { x: number; y: number }

    acceleration in world units per second squared; default no gravity (a banner in still air)

    intent?: MotionIntent

    what the sway is for under reduced motion; default decorative, which holds the garment still

    segmentsX?: number

    quads across; an integer of at least 1, default 8

    segmentsY?: number

    quads down; an integer of at least 1, default 8

    stiffness?: number

    how much of each constraint error one relaxation pass removes, 0 to 1; default 0.9

    wind?: { x: number; y: number }

    acceleration in world units per second squared; default still air