Martial arts forms
Three students run punches, blocks and stances in different orders, then bow together.
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";
// k1: body m1, at (-1.2, 0) m, facing 0°, trained
const k1 = HumanChain.subject("k1")
.registered("horseStance", { seconds: 1 })
.registered("karatePunches", { count: 4 })
.registered("frontStance", { hold: 0.5 })
.registered("lowBlock", { reps: 2 })
.registered("risingBlock", { reps: 2 })
.act("gesture", { kind: "bow" }, "mf-bow");
// k2: body f1, at (0, 0) m, facing 0°, trained
const k2 = HumanChain.subject("k2")
.registered("frontStance", { hold: 0.5 })
.registered("lowBlock", { reps: 2 })
.registered("risingBlock", { reps: 2 })
.registered("horseStance", { seconds: 1 })
.registered("karatePunches", { count: 4 })
.act("stand", { seconds: 0.5 })
.act("gesture", { kind: "bow" })
.sync({ of: "mf-bow" });
// k3: body m2, at (1.2, 0) m, facing 0°, trained
const k3 = HumanChain.subject("k3")
.act("martialArt", { kind: "taiChiTransfer" }, "mf-tai")
.registered("horseStance", { seconds: 1.5 })
.sync({ of: "mf-tai", event: "relax" })
.act("stand", { seconds: 3 })
.act("gesture", { kind: "bow" })
.sync({ of: "mf-bow" });
const scene = k1.with(k2, k3);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSport.horseStance, HumanSport.karatePunches, HumanSportWorkout.frontStance, HumanSportWorkout.lowBlock, HumanSportWorkout.risingBlock];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "forms",
performers: [
{ subject: "k1", body: bodies["m1"]!, at: { x: -1.2, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "k2", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "k3", body: bodies["m2"]!, at: { x: 1.2, y: 0, z: 0 }, 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.