Sneaking in
Two burglars creep up and take cover; one tiptoes ahead and the other hushes him.
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, HumanGait, HumanPerformance, HumanPose } from "@automovie/motions";
// ike: body m1, at (-1, -2.5) m, facing 0°, trained
const ike = HumanChain.subject("ike")
.registered("prowl", { to: { x: -1, y: 0, z: -0.5 } })
.registered("takeCover", {})
.act("look", {
with: "trunk",
cue: "seen",
target: {
kind: "point",
frame: "world",
at: { x: -3, y: 1.6, z: 0.5 },
},
seconds: 1,
})
.registered("tiptoe", { to: { x: -0.6, y: 0, z: 1.2 } }, "ike-in")
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "joy", region: "face" },
});
// joy: body f2, at (1, -2.5) m, facing 0°, trained
const joy = HumanChain.subject("joy")
.registered("sneak", { to: { x: 0.8, y: 0, z: -0.6 } })
.registered("takeCover", {})
.act("look", {
with: "trunk",
cue: "seen",
target: {
kind: "point",
frame: "world",
at: { x: 3, y: 1.6, z: 1 },
},
seconds: 1,
})
.registered("hush", {})
.sync({ of: "ike-in", offset: 0.5 })
.registered("comeHere", { side: "left" });
const scene = ike.with(joy);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanGait.prowl, HumanPose.takeCover, HumanGait.tiptoe, HumanGait.sneak, HumanEmblem.hush, HumanEmblem.comeHere];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "sneak",
performers: [
{ subject: "ike", body: bodies["m1"]!, at: { x: -1, y: 0, z: -2.5 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "joy", body: bodies["f2"]!, at: { x: 1, y: 0, z: -2.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.