Stretching circle
Four runners in a circle cool down, each through their own set of stretches.
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, HumanSport, HumanSportWorkout } from "@automovie/motions";
// ka: body f1, at (0, 0) m, facing 0°, trained
const ka = HumanChain.subject("ka")
.registered("quadStretch", { side: "left", seconds: 1.2 })
.registered("quadStretch", { side: "right", seconds: 1.2 })
.registered("calfStretch", { reps: 1, hold: 1 })
.registered("legSwings", { reps: 2, hold: 0 });
// lo: body m1, at (1.4, 1.4) m, facing 270°, trained
const lo = HumanChain.subject("lo")
.registered("legSwings", { reps: 2, hold: 0 })
.registered("chestStretch", { reps: 1, hold: 1 })
.registered("sideStretch", { side: "right", seconds: 1.2 })
.registered("tricepsStretch", { reps: 1, hold: 1 });
// mi: body f2, at (0, 2.8) m, facing 180°, trained
const mi = HumanChain.subject("mi")
.registered("shoulderStretch", { side: "right", seconds: 1.2 })
.registered("shoulderStretch", { side: "left", seconds: 1.2 })
.registered("armCircles", { reps: 2, hold: 0 })
.registered("neckStretch", { seconds: 0.6 });
// no: body m2, at (-1.4, 1.4) m, facing 90°, trained
const no = HumanChain.subject("no")
.registered("sideStretch", { side: "right", seconds: 1.2 })
.registered("sideStretch", { side: "left", seconds: 1.2 })
.registered("calfStretch", { reps: 1, hold: 0.6 })
.registered("armCircles", { reps: 2, hold: 0 });
const scene = ka.with(lo, mi, no);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSport.quadStretch, HumanSportWorkout.calfStretch, HumanSportWorkout.legSwings, HumanSportWorkout.chestStretch, HumanSport.sideStretch, HumanSportWorkout.tricepsStretch, HumanSport.shoulderStretch, HumanSportWorkout.armCircles, HumanSport.neckStretch];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "stretch",
performers: [
{ subject: "ka", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "lo", body: bodies["m1"]!, at: { x: 1.4, y: 0, z: 1.4 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "mi", body: bodies["f2"]!, at: { x: 0, y: 0, z: 2.8 }, yaw: 180, proficiency: { level: "trained" } },
{ subject: "no", body: bodies["m2"]!, at: { x: -1.4, y: 0, z: 1.4 }, yaw: 90, 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.