Gymnastics floor
Two gymnasts work the floor with holds, rolls, a cartwheel, a kneel and a crawl.
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, HumanFloorRoll, HumanPerformance, HumanSportThrow } from "@automovie/motions";
// uma: body f1, at (-1, 0) m, facing 0°, trained
const uma = HumanChain.subject("uma")
.act("gymnastics", { seconds: 1.5 })
.registered("cartwheelRight", {})
.act("stand", { seconds: 0.3 })
.registered("forwardRoll", {})
.act("kneel", { kind: "both", hold: 0.5 });
// vic: body m1, at (1, 0) m, facing 0°, trained
const vic = HumanChain.subject("vic")
.registered("forwardRoll", {})
.registered("backwardRoll", {})
.act("gymnastics", { seconds: 1 })
.act("crawl", { cycles: 2 });
const scene = uma.with(vic);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportThrow.cartwheelRight, HumanFloorRoll.forwardRoll, HumanFloorRoll.backwardRoll];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "gymnastics-floor",
performers: [
{ subject: "uma", body: bodies["f1"]!, at: { x: -1, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "vic", body: bodies["m1"]!, at: { x: 1, 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.