Gym floor
Six people lift mimed weights: squats, deadlifts, swings, pull-ups, dips and a carry.
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, HumanSportGym, HumanSportWorkout } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const pullBar = archetypes.createPullUpBar({ kind: "gym" });
const pullBarAt = { at: { x: 0.6, y: 0, z: 0 }, yaw: 0 };
const dips = archetypes.createParallelBars({ kind: "dipStation" });
const dipsAt = { at: { x: 1.8, y: 0, z: 0 }, yaw: 0 };
// ada: body m2, at (-3, 0) m, facing 0°, trained
const ada = HumanChain.subject("ada")
.registered("backSquat", { reps: 3 })
.registered("overheadPress", { reps: 1 });
// bo: body f1, at (-1.8, 0) m, facing 0°, trained
const bo = HumanChain.subject("bo")
.registered("deadlift", { reps: 4 })
.registered("romanianDeadlift", { reps: 1 });
// cy: body m1, at (-0.6, 0) m, facing 0°, trained
const cy = HumanChain.subject("cy")
.registered("kettlebellSwing", { reps: 5 })
.registered("gobletSquat", { reps: 1 })
.registered("kettlebellSwing", { reps: 3 });
// di: body f2, at (0.6, 0) m, facing 0°, trained
const di = HumanChain.subject("di")
.registered("pullUp", {
reps: 3,
stay: true,
on: { prop: "pullBar", affordance: "bar" },
})
.registered("kneeRaise", { reps: 2, on: { prop: "pullBar", affordance: "bar" } });
// ed: body m1, at (1.8, 0) m, facing 0°, trained
const ed = HumanChain.subject("ed")
.registered("dip", {
reps: 4,
stay: true,
on: { prop: "dips", affordance: "barLeft", other: "barRight" },
})
.registered("kneeRaise", {
reps: 1,
on: { prop: "dips", affordance: "barLeft", other: "barRight" },
});
// fe: body m2, at (3, -1) m, facing 0°, trained
const fe = HumanChain.subject("fe")
.registered("farmersWalk", { to: { x: 3, y: 0, z: 2 } })
.registered("farmersWalk", { to: { x: 3, y: 0, z: -1 } })
.registered("calfRaise", { reps: 2 });
const scene = ada.with(bo, cy, di, ed, fe);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.backSquat, HumanSportWorkout.overheadPress, HumanSportWorkout.deadlift, HumanSportGym.romanianDeadlift, HumanSportWorkout.kettlebellSwing, HumanSportGym.gobletSquat, HumanSportWorkout.pullUp, HumanSportWorkout.kneeRaise, HumanSportGym.dip, HumanSportCarry.farmersWalk, HumanSportGym.calfRaise];
const props = [
HumanObject.prop("pullBar", pullBar, pullBarAt),
HumanObject.prop("dips", dips, dipsAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "gym",
performers: [
{ subject: "ada", body: bodies["m2"]!, at: { x: -3, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "bo", body: bodies["f1"]!, at: { x: -1.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "cy", body: bodies["m1"]!, at: { x: -0.6, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "di", body: bodies["f2"]!, at: { x: 0.6, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "ed", body: bodies["m1"]!, at: { x: 1.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "fe", body: bodies["m2"]!, at: { x: 3, y: 0, z: -1 }, 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.