A fright
A bang startles four passers-by: one takes cover, one braces, one dives flat, one kneels.
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, HumanEmblem, HumanHabit, HumanPerformance, HumanPose } from "@automovie/motions";
// pat: body m2, at (-1.5, 0) m, facing 0°, trained
const pat = HumanChain.subject("pat")
.act("walk", { to: { x: -1.5, y: 0, z: 1.5 } })
.act("stand", { seconds: 1.5 })
.registered("startle", {}, "fr-bang")
.registered("takeCover", {})
.act("look", {
target: { kind: "person", subject: "ray", region: "face" },
cue: "seen",
})
.registered("handOnHeart", {})
.registered("dontKnow", {})
.act("walk", { to: { x: -1.5, y: 0, z: 2.8 } });
// quy: body f1, at (-0.5, 0.5) m, facing 0°, trained
const quy = HumanChain.subject("quy")
.registered("checkPhone", { seconds: 1 })
.act("stand", { seconds: 0.6 })
.registered("wince", {})
.sync({ of: "fr-bang", event: "start", offset: 0.1 })
.registered("braceForImpact", {})
.act("look", {
target: { kind: "person", subject: "ray", region: "face" },
cue: "seen",
seconds: 1.2,
})
.registered("coverMouth", {})
.act("gesture", { kind: "shakeHead" })
.act("walk", { to: { x: -0.5, y: 0, z: 3 } });
// ray: body m1, at (0.5, 0) m, facing 0°, trained
const ray = HumanChain.subject("ray")
.registered("checkWatch", {})
.act("stand", { seconds: 3 })
.act("lieDown", { position: "prone", hold: 1 })
.sync({ of: "fr-bang", event: "start", offset: 0.15 })
.act("getUp", {})
.act("gesture", { kind: "shrug" })
.act("walk", { to: { x: 0.5, y: 0, z: 2 } });
// sue: body f2, at (1.5, 0.5) m, facing 0°, trained
const sue = HumanChain.subject("sue")
.act("walk", { to: { x: 1.5, y: 0, z: 1.8 } })
.act("stand", { seconds: 3 })
.registered("stumble", {})
.sync({ of: "fr-bang", event: "start", offset: 0.1 })
.registered("kneelBriefly", {})
.act("look", {
target: { kind: "person", subject: "ray", region: "face" },
cue: "seen",
seconds: 1.2,
})
.act("walk", { to: { x: 1.5, y: 0, z: 3.5 } });
const scene = pat.with(quy, ray, sue);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanPose.startle, HumanPose.takeCover, HumanEmblem.handOnHeart, HumanEmblem.dontKnow, HumanHabit.checkPhone, HumanPose.wince, HumanPose.braceForImpact, HumanEmblem.coverMouth, HumanHabit.checkWatch, HumanPose.stumble, HumanPose.kneelBriefly];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "fright",
performers: [
{ subject: "pat", body: bodies["m2"]!, at: { x: -1.5, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "quy", body: bodies["f1"]!, at: { x: -0.5, y: 0, z: 0.5 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "ray", body: bodies["m1"]!, at: { x: 0.5, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "sue", body: bodies["f2"]!, at: { x: 1.5, y: 0, z: 0.5 }, 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.