Bar fight
A stage fight between two brawlers: a grab and a headlock, a shove and the stumble back, a slap and the head turned by it, each reaction at its blow's contact, a mimed bat swing ducked and dodged at its instant, and a bystander who startles and dives for cover.
The packages refuse this scene today, in their own words on the view below. #3551 fixes it.
Computing 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, HumanPose, HumanStageFight, HumanWeaponMelee } from "@automovie/motions";
// joe: body m2, at (0, 0) m, facing 0°, trained
const joe = HumanChain.subject("joe")
.registered("grab", {
target: { kind: "person", subject: "mac", region: "upperArmRight" },
}, "grab")
.registered("headlock", { partner: "mac" })
.registered("shove", {
target: { kind: "person", subject: "mac", region: "sternum" },
}, "shove")
.registered("slap", {
target: { kind: "person", subject: "mac", region: "jawLeft" },
}, "slap")
.registered("clubSwing", {
target: { kind: "person", subject: "mac", region: "shoulderLeft" },
}, "swing");
// mac: body m1, at (0, 0.52) m, facing 180°, trained
const mac = HumanChain.subject("mac")
.registered("grabbed", {
from: { kind: "person", subject: "joe", region: "palmRight" },
})
.sync({ of: "grab" })
.registered("shoved", {
from: { kind: "person", subject: "joe", region: "palmRight" },
})
.sync({ of: "shove" })
.registered("slapped", {
from: { kind: "person", subject: "joe", region: "palmRight" },
})
.sync({ of: "slap" })
.registered("duck", {})
.sync({ of: "swing", offset: -0.2 })
.registered("dodge", { length: 0.3 });
// ned: body f1, at (2, 1) m, facing 270°, trained
const ned = HumanChain.subject("ned")
.registered("startle", {})
.registered("diveForCover", {});
const scene = joe.with(mac, ned);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStageFight.grab, HumanStageFight.headlock, HumanStageFight.shove, HumanStageFight.slap, HumanWeaponMelee.clubSwing, HumanStageFight.grabbed, HumanStageFight.shoved, HumanStageFight.slapped, HumanStageFight.duck, HumanStageFight.dodge, HumanPose.startle, HumanStageFight.diveForCover];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "bar-fight",
performers: [
{ subject: "joe", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "mac", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0.52 }, yaw: 180, proficiency: { level: "trained" } },
{ subject: "ned", body: bodies["f1"]!, at: { x: 2, y: 0, z: 1 }, yaw: 270, 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.