mwg API
    Preparing search index...

    Interface SpringOptions

    Tuning and starting state for Spring; positions are in world units.

    interface SpringOptions {
        anchor?: { x: number; y: number };
        damping: number;
        intent?: MotionIntent;
        position?: { x: number; y: number };
        stiffness: number;
    }
    Index
    anchor?: { x: number; y: number }

    where the anchor starts; default { x: 0, y: 0 }

    damping: number

    velocity lost per unit of velocity, per second; must be finite and at least 0

    intent?: MotionIntent

    what the lag is for under reduced motion; default decorative, which snaps to the anchor

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

    where the bob starts; default at the anchor, at rest

    stiffness: number

    pull per unit of displacement, per second squared; must be finite and above 0