Leg day
Four people train legs: squats, a wall sit, step-ups, a box jump, hip thrusts and lunges.
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, HumanDrill, HumanObject, HumanPerformance, HumanSport, HumanSportGym, HumanSportThrow } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const box = archetypes.createPlyoBox({ height: 0.508, width: 0.61, depth: 0.61, kind: "wood" });
const boxAt = { at: { x: 0.8, y: 0, z: 0.8 }, yaw: 0 };
const bench = archetypes.createBench({ kind: "flat" });
const benchAt = { at: { x: 2.4, y: 0, z: -0.6 }, yaw: 270 };
const wall = archetypes.createWall({ kind: "full" });
const wallAt = { at: { x: -2.4, y: 0, z: -0.6 }, yaw: 0 };
// hap: body m1, at (-2.4, 0) m, facing 0°, trained
const hap = HumanChain.subject("hap")
.registered("splitSquat", { reps: 2 })
.registered("wallSit", { hold: 1.5, on: { prop: "wall", affordance: "face" } })
.registered("quadStretch", { seconds: 0.5 });
// ike: body f2, at (-0.8, 0) m, facing 0°, trained
const ike = HumanChain.subject("ike")
.registered("calfRaise", { reps: 3 })
.registered("squats", { reps: 3 });
// jem: body m2, at (0.8, 0) m, facing 0°, trained
const jem = HumanChain.subject("jem")
.registered("stepUp", { reps: 3, on: { prop: "box", affordance: "surface" } })
.registered("highKnees", { reps: 4, tempo: [0.35, 0, 0.35] })
.act("stand", { seconds: 0.3 })
.registered("boxJump", { to: { x: 0.8, y: 0.508, z: 0.8 }, on: "box" });
// kai: body f1, at (2.4, 0) m, facing 0°, trained
const kai = HumanChain.subject("kai")
.registered("hipThrust", { reps: 2, on: { prop: "bench", affordance: "edge" } })
.registered("lunges", { reps: 2, tempo: [1.5, 0, 1] });
const scene = hap.with(ike, jem, kai);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportGym.splitSquat, HumanSportGym.wallSit, HumanSport.quadStretch, HumanSportGym.calfRaise, HumanDrill.squats, HumanSportGym.stepUp, HumanSport.highKnees, HumanSportThrow.boxJump, HumanSportGym.hipThrust, HumanSport.lunges];
const props = [
HumanObject.prop("box", box, boxAt),
HumanObject.prop("bench", bench, benchAt),
HumanObject.prop("wall", wall, wallAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "leg-day",
performers: [
{ subject: "hap", body: bodies["m1"]!, at: { x: -2.4, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "ike", body: bodies["f2"]!, at: { x: -0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "jem", body: bodies["m2"]!, at: { x: 0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "kai", body: bodies["f1"]!, at: { x: 2.4, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
],
composition: scene.node,
props,
laws,
};
const performance = new HumanPerformance(input);Each person's actions on the film clock, with their named instants, as the engine placed them.
The timeline appears when the take is drawn.
The same composition in 4 takes on the player's clock. Each changes one choice and keeps the rest; the other takes are computed in this page, which takes a few seconds.