Kickboxing round
Two kickboxers trade combinations and counters until a head kick knocks one down.
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, HumanDefence, HumanPerformance, HumanStageFight, HumanStance, HumanStrike } from "@automovie/motions";
// red: body m1, at (0, 0) m, facing 0°, elite
const red = HumanChain.subject("red")
.act("guard", {
seconds: 0.5,
style: "kickboxing",
facing: { kind: "person", subject: "blu", region: "face" },
})
.act("step", { direction: "right", steps: 2 })
.registered("leanBack", {
from: { kind: "person", subject: "blu", region: "handBackLeft" },
}, "kr-lean")
.act("step", { direction: "forward", steps: 1 })
.registered("jab", {
at: { kind: "person", subject: "blu", region: "face" },
feint: 0.4,
}, "kr-feint")
.act("step", { direction: "forward", steps: 1 })
.registered("jab", { at: { kind: "person", subject: "blu", region: "face" } }, "kr-jab")
.registered("cross", { at: { kind: "person", subject: "blu", region: "chin" } }, "kr-cross")
.registered("leadHook", {
at: { kind: "person", subject: "blu", region: "jawRight" },
}, "kr-hook")
.registered("roundKick", {
at: { kind: "person", subject: "blu", region: "thighOuterLeft" },
}, "kr-low")
.act("guard", { seconds: 0.5, style: "kickboxing" }, "kr-shell")
.registered("braceImpact", {}, "kr-brace")
.act("guard", { seconds: 0.4, style: "kickboxing" })
.registered("rearHook", {
at: { kind: "person", subject: "blu", region: "jawLeft" },
}, "kr-counter")
.act("guard", { seconds: 0.8, style: "kickboxing" })
.registered("pushed", {
from: { kind: "person", subject: "blu", region: "soleRight" },
}, "kr-teeped")
.act("step", { direction: "forward", steps: 1 })
.registered("jab", {
at: { kind: "person", subject: "blu", region: "face" },
feint: 0.5,
}, "kr-feint2")
.registered("leadHook", { at: { kind: "person", subject: "blu", region: "liver" } }, "kr-body")
.registered("roundKick", {
at: { kind: "person", subject: "blu", region: "templeLeft" },
}, "kr-ko")
.registered("victory", {});
// blu: body m2, at (0, 2.5) m, facing 180°, elite
const blu = HumanChain.subject("blu")
.act("guard", {
seconds: 0.5,
style: "kickboxing",
facing: { kind: "person", subject: "red", region: "face" },
})
.act("step", { direction: "left", steps: 2 })
.registered("jab", {
at: { kind: "person", subject: "red", region: "face" },
accuracy: "miss",
})
.sync({ of: "kr-lean", event: "stroke", align: "impact" })
.registered("swayBack", { against: "kr-feint" })
.registered("handParry", { against: "kr-jab" })
.registered("cover", { against: "kr-cross" })
.registered("checkKick", { against: "kr-low" })
.registered("cross", { at: { kind: "person", subject: "red", region: "chin" } })
.sync({ of: "kr-shell", event: "set", align: "impact" })
.registered("switchKick", {
at: { kind: "person", subject: "red", region: "ribsRight" },
})
.sync({
of: "kr-brace",
event: "start",
offset: 1.3,
align: "impact",
})
.registered("rollUnder", { against: "kr-counter" })
.registered("teep", {
at: { kind: "person", subject: "red", region: "abdomen" },
})
.sync({ of: "kr-teeped", event: "start", align: "impact" })
.registered("highBlock", { against: "kr-feint2" })
.act("flinch", {
from: { kind: "person", subject: "red", region: "handBackLeft" },
intensity: 0.8,
})
.sync({ of: "kr-body", event: "impact" })
.act("knockdown", {
from: { kind: "person", subject: "red", region: "footTopRight" },
seconds: 2,
})
.sync({ of: "kr-ko", event: "impact" });
const scene = red.with(blu);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStageFight.leanBack, HumanStrike.jab, HumanStrike.cross, HumanStrike.leadHook, HumanStrike.roundKick, HumanDefence.braceImpact, HumanStrike.rearHook, HumanStageFight.pushed, HumanStance.victory, HumanDefence.swayBack, HumanDefence.handParry, HumanDefence.cover, HumanDefence.checkKick, HumanStrike.switchKick, HumanDefence.rollUnder, HumanStrike.teep, HumanDefence.highBlock];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "kickboxing-round",
performers: [
{ subject: "red", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "elite" } },
{ subject: "blu", body: bodies["m2"]!, at: { x: 0, y: 0, z: 2.5 }, yaw: 180, proficiency: { level: "elite" } },
],
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.