Strata - v1.4.10
    Preparing search index...

    Interface SpringConfig

    Configuration for a physical spring system.

    interface SpringConfig {
        damping: number;
        mass: number;
        restLength?: number;
        stiffness: number;
    }
    Index

    Properties

    damping: number

    Resistance to movement. Higher = less oscillation.

    mass: number

    Weight of the object. Higher = more momentum.

    restLength?: number

    Neutral length of the spring.

    stiffness: number

    Resistance to displacement. Higher = snappier.