Skip to Content

Barrow and carry

One athlete pushes a wheelbarrow up the lane; another carries mimed weights up and back.

Loading the take.

Each person is a chain of typed actions from @automovie/motions. This is what an agent writes for the scene; Composing motion explains the parts.

import type { IAutoMovieMotionHumanBody, IAutoMovieMotionHumanPerformance } from "@automovie/interface";
import { HumanChain, HumanObject, HumanPerformance, HumanSportCarry, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";

const barrow = archetypes.createCart({ kind: "wheelbarrow" });
const barrowAt = { at: { x: -1, y: 0, z: -1.2 }, yaw: 0 };

// yul: body m2, at (-1, -2.2) m, facing 0°, trained
const yul = HumanChain.subject("yul")
  .registered("sledPush", {
      sled: "barrow",
      to: { x: -1, y: 0, z: 2 },
      left: "leftHandle",
      right: "rightHandle",
    })
  .act("selfAction", { kind: "shoulderRoll" })
  .act("walk", { to: { x: -1, y: 0, z: -2 } })
  .registered("handsOnHips", { seconds: 1 });

// zed: body f1, at (1, -2) m, facing 0°, trained
const zed = HumanChain.subject("zed")
  .registered("farmersWalk", { to: { x: 1, y: 0, z: 2 } })
  .registered("farmersWalk", { to: { x: 1, y: 0, z: -2 } })
  .act("selfAction", { kind: "shoulderRoll" });

const scene = yul.with(zed);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportCarry.sledPush, HumanStance.handsOnHips, HumanSportCarry.farmersWalk];

const props = [
  HumanObject.prop("barrow", barrow, barrowAt),
];

// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "sled-and-carry",
  performers: [
    { subject: "yul", body: bodies["m2"]!, at: { x: -1, y: 0, z: -2.2 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "zed", body: bodies["f1"]!, at: { x: 1, y: 0, z: -2 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  props,
  laws,
};
const performance = new HumanPerformance(input);