Stage slap
Two actors rehearse a slap fight, each slap, poke and miss sold on its beat.
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, HumanPerformance, HumanStageFight, HumanStrike } from "@automovie/motions";
// vic: body m1, at (0, 0) m, facing 0°, trained
const vic = HumanChain.subject("vic")
.registered("stageSlap", {
target: { kind: "person", subject: "wyn", region: "cheekLeft" },
}, "ss-slap")
.registered("backhand", {
target: { kind: "person", subject: "wyn", region: "cheekRight" },
}, "ss-back")
.registered("dontKnow", {})
.registered("slapped", {
from: { kind: "person", subject: "wyn", region: "palmRight" },
}, "ss-sold")
.registered("poke", {
target: { kind: "person", subject: "wyn", region: "chestLeft" },
count: 1,
}, "ss-poke")
.registered("leanBack", {
from: { kind: "person", subject: "wyn", region: "handBackRight" },
}, "ss-lean")
.registered("stageSlap", {
target: { kind: "person", subject: "wyn", region: "cheekLeft" },
}, "ss-slap2")
.registered("backhand", {
target: { kind: "person", subject: "wyn", region: "cheekRight" },
}, "ss-back2")
.registered("thumbsUp", {});
// wyn: body f1, at (0, 0.6) m, facing 180°, trained
const wyn = HumanChain.subject("wyn")
.registered("slapped", {
from: { kind: "person", subject: "vic", region: "palmRight" },
})
.sync({ of: "ss-slap" })
.registered("slapped", {
from: { kind: "person", subject: "vic", region: "handBackRight" },
})
.sync({ of: "ss-back" })
.registered("stageSlap", {
target: { kind: "person", subject: "vic", region: "cheekLeft" },
})
.sync({ of: "ss-sold", event: "start", align: "stroke" })
.registered("pushed", {
from: { kind: "person", subject: "vic", region: "indexTipRight" },
})
.sync({ of: "ss-poke" })
.registered("rearHook", {
at: { kind: "person", subject: "vic", region: "jawLeft" },
accuracy: "miss",
})
.sync({ of: "ss-lean", event: "stroke", align: "impact" })
.registered("slapped", {
from: { kind: "person", subject: "vic", region: "palmRight" },
})
.sync({ of: "ss-slap2" })
.registered("slapped", {
from: { kind: "person", subject: "vic", region: "handBackRight" },
})
.sync({ of: "ss-back2" })
.registered("thumbsUp", {});
const scene = vic.with(wyn);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStageFight.stageSlap, HumanStageFight.backhand, HumanEmblem.dontKnow, HumanStageFight.slapped, HumanStageFight.poke, HumanStageFight.leanBack, HumanEmblem.thumbsUp, HumanStageFight.pushed, HumanStrike.rearHook];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "stage-slap",
performers: [
{ subject: "vic", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "wyn", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0.6 }, yaw: 180, 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.