AutoMovie API
    Preparing search index...

    Function createFood

    • Food a hand takes to the mouth: a loaf of bread, an apple or a chicken drumstick.

      Each lies on the floor of its own space at rest, as it lies on a plate's top. grip is where the hand holds it and bite the place handToFace brings to the mouth, as its drink task brings a cup's lip:

      • a loaf lies along X in two halves that meet at its middle; the hand at grip holds it from above at its middle, and bite is its -X end. Two hands tear it: one holds the -X half at hold, the other draws the +X half away along +X on the tear slider.
      • an apple sits on its base with its stalk up; grip closes round it and bite is its side toward +Z, +Y the skin's outward normal.
      • a drumstick lies along X, its meat toward -X and its bare knuckle toward +X; grip closes round the knuckle and bite is the meat's -X end.

      Parameters

      • params: createFood.IParams

        The kind, the kind's model where it has read models, and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that picks the model when none is given and draws every dimension left free inside its band; absent, the first model and the middle of each band.

      Returns Archetype<createFood.Affordance, createFood.Dimension>

      The food.

      For a model the kind does not have, or a fixed dimension outside its band.