Cardio corner
Four people warm up: rowing and cycling, skipping rope, dance steps and strides.
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, HumanSportWorkout } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const bike = archetypes.createBicycle({});
const bikeAt = { at: { x: -2.4, y: 0, z: 0.9 }, yaw: 0 };
// uli: body m1, at (-2.4, 0) m, facing 0°, trained
const uli = HumanChain.subject("uli")
.registered("rowing", { reps: 2 })
.registered("cycling", { reps: 3, on: { prop: "bike", affordance: "saddle" } });
// val: body f2, at (-0.8, 0) m, facing 0°, trained
const val = HumanChain.subject("val")
.registered("jumpRope", { reps: 16 })
.registered("highKnees", { reps: 4, tempo: [0.35, 0, 0.35] })
.registered("jumpRope", { reps: 16 });
// wil: body f1, at (0.8, 0) m, facing 0°, trained
const wil = HumanChain.subject("wil")
.registered("stepTouch", {})
.registered("boxStep", { beats: 12 })
.registered("stepTouch", { beats: 7, side: "left" });
// xen: body m2, at (2.4, -3) m, facing 0°, trained
const xen = HumanChain.subject("xen")
.registered("strides", { to: { x: 2.4, y: 0, z: 4 } })
.registered("buttKicks", { reps: 4 })
.registered("strides", { to: { x: 2.4, y: 0, z: -3 } })
.registered("aSkip", { reps: 6, tempo: [0.35, 0, 0.35] });
const scene = uli.with(val, wil, xen);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.rowing, HumanSportWorkout.cycling, HumanSportWorkout.jumpRope, HumanSport.highKnees, HumanSport.stepTouch, HumanSport.boxStep, HumanSportWorkout.strides, HumanSportWorkout.buttKicks, HumanSportWorkout.aSkip];
const props = [
HumanObject.prop("bike", bike, bikeAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "cardio-corner",
performers: [
{ subject: "uli", body: bodies["m1"]!, at: { x: -2.4, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "val", body: bodies["f2"]!, at: { x: -0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "wil", body: bodies["f1"]!, at: { x: 0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "xen", body: bodies["m2"]!, at: { x: 2.4, y: 0, z: -3 }, 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.