Throwing circle
A hammer thrower rehearses two turns, throws with three and watches the mimed hammer.
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, HumanSportWorkout, HumanStance } from "@automovie/motions";
// thr: body m2, at (0, -2.2) m, facing 0°, trained
const thr = HumanChain.subject("thr")
.act("walk", { to: { x: 0, y: 0, z: 0 }, face: 0 })
.registered("armCircles", { reps: 2 })
.registered("hammerTurn", { reps: 2 })
.act("stand", { seconds: 0.6 })
.registered("hammerTurn", { reps: 3 })
.act("look", {
target: { kind: "point", frame: "world", at: { x: 0, y: 3, z: 30 } },
seconds: 1.2,
})
.registered("fistPump", {});
const scene = thr;
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.armCircles, HumanSportWorkout.hammerTurn, HumanStance.fistPump];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "throwing-circle",
performers: [
{ subject: "thr", body: bodies["m2"]!, at: { x: 0, y: 0, z: -2.2 }, yaw: 0, 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.