math docs
    Preparing search index...

    Type Alias Spring<T>

    Spring state: a value and its velocity, of matching rank (number, Vec2, Vec3, or Vec4). Allocate once, mutate each frame.

    type Spring<T> = {
        value: T;
        velocity: T;
    }

    Type Parameters

    • T
    Index
    value: T
    velocity: T