Skip to Content

Farmer's carry

An athlete takes a kettlebell off the floor in each hand and carries them down the lane, the arms hanging still.

The packages refuse this scene today, in their own words on the view below. #3528 fixes it.

Computing 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 } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";

const bellL = archetypes.createKettlebell({ kind: "competition" });
const bellLAt = { at: { x: 0.25, y: 0, z: -1.7 }, yaw: 0 };
const bellR = archetypes.createKettlebell({ kind: "competition" });
const bellRAt = { at: { x: -0.25, y: 0, z: -1.7 }, yaw: 0 };

// ari: body f1, at (0, -2) m, facing 0°, trained
const ari = HumanChain.subject("ari")
  .act("pickUp", { prop: "bellL", handle: "grip", hand: "left" })
  .act("pickUp", { prop: "bellR", handle: "grip", hand: "right" })
  .registered("farmersWalk", { to: { x: 0, y: 0, z: 2 } })
  .over((overlay) =>
    overlay
      .registered("farmersHold", { left: "bellL", right: "bellR", seconds: 3 })
  );

const scene = ari;

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

const props = [
  HumanObject.prop("bellL", bellL, bellLAt),
  HumanObject.prop("bellR", bellR, bellRAt),
];

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

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