AutoMovie API
    Preparing search index...

    Function createBarbell

    • A weightlifting barbell: a steel bar with a sleeve at each end, and the discs loaded on the sleeves when a load is given.

      The bar lies along X, its middle at the origin, its axis a disc's radius above nothing: the origin is on the bar's axis, so a scene that rests it on the floor places it a loaded disc's radius up. gripLeft (on +X) and gripRight are where the two hands hold it, taken from the -Z side, grip apart.

      Parameters

      • params: createBarbell.IParams

        The kind, any dimension the author fixes, and the load.

      • Optionalseed: string | number

        The seed that draws every dimension left free inside its band; absent, each takes the middle of its band.

      Returns Archetype<createBarbell.Affordance, createBarbell.Dimension>

      The barbell.

      For a fixed dimension outside its band.