Body-weight circuit
Four people train with body weight: push-up variations, a plank, burpees and high knees.
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, HumanSport, HumanSportGym, HumanSportWorkout, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const bench = archetypes.createBench({ kind: "flat" });
const benchAt = { at: { x: -0.8, y: 0, z: 1.1 }, yaw: 90 };
// lia: body f1, at (-2.4, 0) m, facing 0°, trained
const lia = HumanChain.subject("lia")
.registered("pushUp", { reps: 2 })
.registered("widePushUp", { reps: 1 })
.act("selfAction", { kind: "shoulderRoll" });
// mo: body m1, at (-0.8, 0) m, facing 0°, trained
const mo = HumanChain.subject("mo")
.registered("inclinePushUp", { reps: 2, on: { prop: "bench", affordance: "surface" } })
.registered("declinePushUp", { reps: 1, on: { prop: "bench", affordance: "surface" } })
.registered("shoulderStretch", { seconds: 0.3 });
// nat: body f2, at (0.8, 0) m, facing 0°, trained
const nat = HumanChain.subject("nat")
.registered("pikePushUp", { reps: 1 })
.registered("plank", { hold: 2 })
.act("selfAction", { kind: "neckRoll", count: 3 });
// oz: body m2, at (2.4, 0) m, facing 0°, trained
const oz = HumanChain.subject("oz")
.registered("highKnees", { reps: 4, tempo: [0.35, 0, 0.35] })
.registered("burpee", { reps: 4 })
.registered("handsOnHips", { seconds: 1.2 })
.registered("highKnees", { reps: 4, tempo: [0.35, 0, 0.35] });
const scene = lia.with(mo, nat, oz);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.pushUp, HumanSportWorkout.widePushUp, HumanSportGym.inclinePushUp, HumanSportGym.declinePushUp, HumanSport.shoulderStretch, HumanSportGym.pikePushUp, HumanSportWorkout.plank, HumanSport.highKnees, HumanSportWorkout.burpee, HumanStance.handsOnHips];
const props = [
HumanObject.prop("bench", bench, benchAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "push-up-ladder",
performers: [
{ subject: "lia", body: bodies["f1"]!, at: { x: -2.4, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "mo", body: bodies["m1"]!, at: { x: -0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "nat", body: bodies["f2"]!, at: { x: 0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "oz", body: bodies["m2"]!, 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.