High jump and sprint
A jumper warms up and clears the bar with a Fosbury flop; a sprinter dashes and cheers.
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, HumanGestureRows, HumanGymnastics, HumanObject, HumanPerformance, HumanSport, HumanSportThrow, HumanSportWorkout, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const bar = archetypes.createHighJump({ height: 1.4, kind: "highJump" });
const barAt = { at: { x: 0, y: 0, z: 0 }, yaw: 90 };
const mat = archetypes.createLandingMat({ kind: "highJump" });
const matAt = { at: { x: 2.2, y: 0, z: 0 }, yaw: 90 };
// hj: body f1, at (-4, 0) m, facing 90°, trained
const hj = HumanChain.subject("hj")
.registered("legSwings", { reps: 4 })
.registered("armCircles", { reps: 1 })
.act("stand", { seconds: 1 })
.registered("gestureClap", {}, "hj-clap")
.registered("strides", { to: { x: -1.5, y: 0, z: 0 } })
.registered("fosburyFlop", {
to: { x: 1.2, y: 0.7, z: 0 },
bar: "bar",
on: "mat",
apexReserve: 0.35,
}, "hj-flop");
// pv: body m1, at (-4, 4) m, facing 90°, trained
const pv = HumanChain.subject("pv")
.registered("armCircles", { reps: 2 })
.registered("sprintStart", { seconds: 1, sex: "male" })
.registered("dash", { to: { x: 1, y: 0, z: 4 } })
.act("stand", { seconds: 2 })
.registered("gestureClap", {})
.sync({ of: "hj-clap" })
.act("look", {
target: { kind: "person", subject: "hj", region: "face" },
cue: "seen",
seconds: 2,
})
.registered("fistPump", { count: 2 })
.sync({ of: "hj-flop", event: "touchdown" });
const scene = hj.with(pv);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.legSwings, HumanSportWorkout.armCircles, HumanGestureRows.gestureClap, HumanSportWorkout.strides, HumanGymnastics.fosburyFlop, HumanSport.sprintStart, HumanSportThrow.dash, HumanStance.fistPump];
const props = [
HumanObject.prop("bar", bar, barAt),
HumanObject.prop("mat", mat, matAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "jumps",
performers: [
{ subject: "hj", body: bodies["f1"]!, at: { x: -4, y: 0, z: 0 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "pv", body: bodies["m1"]!, at: { x: -4, y: 0, z: 4 }, yaw: 90, 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.