Pursuit
A man bolts from an officer; a second officer heads him off and he drops to his knees.
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, HumanHabit, HumanPerformance, HumanPose, HumanPursuit, HumanStageFight, HumanStance } from "@automovie/motions";
// run: body m1, at (0, -1) m, facing 0°, trained
const run = HumanChain.subject("run")
.registered("readingWalk", { to: { x: 0, y: 0, z: 0.5 } })
.over((overlay) =>
overlay
.registered("checkPhone", { seconds: 1.5 })
)
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "cop", region: "face" },
}, "spotted")
.registered("flee", { from: "cop", metres: 7, pace: "run" }, "bolt")
.registered("startle", {})
.registered("handsUp", { hold: 1 })
.act("kneel", { kind: "both", hold: 1, rise: false });
// cop: body m2, at (0, -4) m, facing 0°, trained
const cop = HumanChain.subject("cop")
.act("walk", { to: { x: 0, y: 0, z: -2 } })
.act("gesture", {
kind: "point",
target: { kind: "person", subject: "run", region: "upperBack" },
})
.registered("halt", { hold: 0.5 })
.sync({ of: "spotted", event: "end" })
.registered("sprint", { to: { x: 0.3, y: 0, z: 6.8 } })
.registered("grab", {
target: { kind: "person", subject: "run", region: "upperArmRight" },
})
.act("gesture", {
kind: "point",
target: { kind: "person", subject: "run", region: "upperBack" },
})
.act("gesture", { kind: "nod" });
// cut: body f1, at (3.5, 3) m, facing 270°, trained
const cut = HumanChain.subject("cut")
.registered("checkWatch", {})
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "run", region: "face" },
})
.registered("startle", {})
.sync({ of: "bolt" })
.registered("intercept", { target: "run" })
.registered("halt", { hold: 2 })
.act("gesture", {
kind: "point",
target: { kind: "person", subject: "run", region: "face" },
})
.registered("handsOnHips", { seconds: 1.5 });
// tag: body f2, at (-2.5, -6) m, facing 0°, trained
const tag = HumanChain.subject("tag")
.registered("stroll", { to: { x: -2.5, y: 0, z: -3.5 } })
.registered("startle", {})
.sync({ of: "bolt" })
.registered("hurry", { to: { x: -1.5, y: 0, z: 3 } })
.act("handToFace", { task: "phone", seconds: 3 });
// vip: body f1, at (-3, 1.6) m, facing 90°, trained
const vip = HumanChain.subject("vip")
.registered("stroll", { to: { x: -1, y: 0, z: 1.6 } })
.registered("startle", {})
.sync({ of: "bolt" })
.registered("coverMouth", {})
.registered("hurry", { to: { x: -5, y: 0, z: 4.5 } })
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "run", region: "face" },
});
// esc: body m1, at (-3, 1) m, facing 90°, trained
const esc = HumanChain.subject("esc")
.registered("stroll", { to: { x: -2, y: 0, z: 1 } })
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "run", region: "face" },
})
.registered("escort", {
target: { kind: "person", subject: "vip", region: "upperArmLeft" },
})
.act("look", {
with: "trunk",
cue: "seen",
target: { kind: "person", subject: "cop", region: "face" },
});
const scene = run.with(cop, cut, tag, vip, esc);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanHabit.readingWalk, HumanHabit.checkPhone, HumanPursuit.flee, HumanPose.startle, HumanEmblem.handsUp, HumanEmblem.halt, HumanGait.sprint, HumanStageFight.grab, HumanHabit.checkWatch, HumanPursuit.intercept, HumanStance.handsOnHips, HumanGait.stroll, HumanGait.hurry, HumanEmblem.coverMouth, HumanPursuit.escort];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "pursuit",
performers: [
{ subject: "run", body: bodies["m1"]!, at: { x: 0, y: 0, z: -1 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "cop", body: bodies["m2"]!, at: { x: 0, y: 0, z: -4 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "cut", body: bodies["f1"]!, at: { x: 3.5, y: 0, z: 3 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "tag", body: bodies["f2"]!, at: { x: -2.5, y: 0, z: -6 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "vip", body: bodies["f1"]!, at: { x: -3, y: 0, z: 1.6 }, yaw: 90, proficiency: { level: "trained" } },
{ subject: "esc", body: bodies["m1"]!, at: { x: -3, y: 0, z: 1 }, yaw: 90, 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.