Skip to Content

Dumbbell corner

Three people work mimed dumbbells: curls and extensions, raises, shrugs and rows.

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, HumanHabit, HumanPerformance, HumanSportGym } from "@automovie/motions";

// ann: body f1, at (-1.8, 0) m, facing 0°, trained
const ann = HumanChain.subject("ann")
  .registered("curl", { reps: 2 })
  .registered("fanSelf", {})
  .registered("tricepsExtension", { reps: 2 });

// bud: body m1, at (0, 0) m, facing 0°, trained
const bud = HumanChain.subject("bud")
  .registered("lateralRaise", { reps: 2 })
  .act("selfAction", { kind: "shoulderRoll" })
  .registered("frontRaise", { reps: 2 });

// cid: body m2, at (1.8, 0) m, facing 0°, trained
const cid = HumanChain.subject("cid")
  .registered("shrug", { reps: 3 })
  .registered("bentOverRow", { reps: 2 })
  .act("selfAction", { kind: "neckRoll" });

const scene = ann.with(bud, cid);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportGym.curl, HumanHabit.fanSelf, HumanSportGym.tricepsExtension, HumanSportGym.lateralRaise, HumanSportGym.frontRaise, HumanSportGym.shrug, HumanSportGym.bentOverRow];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "dumbbell-corner",
  performers: [
    { subject: "ann", body: bodies["f1"]!, at: { x: -1.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "bud", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "cid", body: bodies["m2"]!, at: { x: 1.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);