AutoMovie API
    Preparing search index...

    Function createMagazine

    • A detachable box magazine: a pistol's or a rifle's.

      It stands on its base plate at the origin, its feed lips up along +Y and its front, where the rounds' noses point, toward +Z. feed is the top, facing up, the end that leads into the gun's magazine well. base is the base plate's underside, facing down: the palm strikes it to seat the magazine, and the magazine is seated when its base coincides with the gun's magazine socket, the well's mouth facing down out of the grip (createHandgun), so the body stands up inside the well. grip is the body a hand closes round, taken from the -X side. A rifle's magazine is drawn straight; its curve is not modelled.

      Parameters

      • params: createMagazine.IParams

        The kind, whether it is loaded and any dimension the author fixes.

      • Optionalseed: string | number

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

      Returns Archetype<createMagazine.Affordance, createMagazine.Dimension>

      The magazine.

      For a fixed dimension outside its band.