Type Alias PendulumOpts

PendulumOpts: {
    damping?: number;
    length?: number;
    speed?: number;
}

Pendulum force options

Type declaration

  • Optional Readonlydamping?: number

    Damping, how much to reduce velocity. Default 0.995 (ie 0.5% loss)

  • Optional Readonlylength?: number

    Length of 'string' thing is hanging from. If undefined, the current length between thing and pinnedAt is used.

  • Optional Readonlyspeed?: number

    Max speed of swing. Slower speed can reach equilibrium faster, since it might not swing past resting point. Default 0.001.