Mat work
Three people work the floor: sit-ups, crunches and twists, a bear crawl and an inchworm.
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, HumanPerformance, HumanSportGym, HumanSportWorkout } from "@automovie/motions";
// pam: body f1, at (-1.5, 0) m, facing 0°, trained
const pam = HumanChain.subject("pam")
.registered("sitUp", { reps: 2, manner: { pace: 1.1 } })
.registered("lyingLegRaise", { reps: 1, manner: { pace: 1.1 } });
// quin: body m1, at (0, 0) m, facing 0°, trained
const quin = HumanChain.subject("quin")
.registered("bicycleCrunch", { reps: 4 })
.registered("russianTwist", { reps: 2, hold: 0.2 });
// rio: body m2, at (1.5, -1) m, facing 0°, trained
const rio = HumanChain.subject("rio")
.registered("bearCrawl", { cycles: 2 })
.registered("inchworm", { cycles: 1 });
const scene = pam.with(quin, rio);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.sitUp, HumanSportGym.lyingLegRaise, HumanSportGym.bicycleCrunch, HumanSportGym.russianTwist, HumanSportGym.bearCrawl, HumanSportGym.inchworm];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "mat-work",
performers: [
{ subject: "pam", body: bodies["f1"]!, at: { x: -1.5, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "quin", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "rio", body: bodies["m2"]!, at: { x: 1.5, y: 0, z: -1 }, yaw: 0, proficiency: { level: "trained" } },
],
composition: scene.node,
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.