Penalty
A kicker scores high past a keeper diving the wrong way; a defender slides in late.
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, HumanFloorFall, HumanObject, HumanPerformance, HumanSport, HumanSportThrow, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const ball = archetypes.createBall({ kind: "football" });
const ballAt = { at: { x: 0, y: 0, z: 1.3 }, yaw: 0 };
// kic: body m1, at (0, 0) m, facing 0°, trained
const kic = HumanChain.subject("kic")
.act("walk", { to: { x: 0, y: 0, z: -1 }, face: 0 })
.registered("handsOnHips", { seconds: 1.8 })
.act("look", {
target: { kind: "person", subject: "kee", region: "face" },
seconds: 1.2,
})
.registered("bounce", { beats: 4 })
.act("stand", { seconds: 0.9 })
.registered("dash", { to: { x: 0, y: 0, z: 1 } })
.registered("kickRight", {
ball: "ball",
toward: {
kind: "point",
frame: "world",
at: { x: 1.7, y: 0.9, z: 11.4 },
},
speed: 22,
lift: 4,
}, "pen-kick")
.registered("fistPump", { count: 1 });
// kee: body m2, at (0, 11) m, facing 180°, trained
const kee = HumanChain.subject("kee")
.registered("bounce", { beats: 6 })
.act("step", { direction: "left", steps: 1 })
.act("step", { direction: "right", steps: 1 })
.registered("bounce", { beats: 6 })
.act("step", { direction: "right", steps: 1 })
.act("step", { direction: "left", steps: 1 })
.act("crouch", { hold: 0.3 })
.act("stand", { seconds: 1.9 })
.registered("goalkeeperDiveLeft", {})
.sync({ of: "pen-kick", event: "stroke", offset: 0.3 });
// def: body f1, at (3, 3) m, facing 240°, trained
const def = HumanChain.subject("def")
.registered("bounce", { beats: 8 })
.registered("handsOnHips", { seconds: 1.5 })
.registered("bounce", { beats: 6 })
.act("stand", { seconds: 1.9 })
.registered("dash", { to: { x: 2.6, y: 0, z: 5 } })
.sync({ of: "pen-kick", event: "start" })
.registered("slidingTackle", {});
const scene = kic.with(kee, def);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStance.handsOnHips, HumanSport.bounce, HumanSportThrow.dash, HumanSportThrow.kickRight, HumanStance.fistPump, HumanFloorFall.goalkeeperDiveLeft, HumanFloorFall.slidingTackle];
const props = [
HumanObject.prop("ball", ball, ballAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "penalty",
performers: [
{ subject: "kic", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "kee", body: bodies["m2"]!, at: { x: 0, y: 0, z: 11 }, yaw: 180, proficiency: { level: "trained" } },
{ subject: "def", body: bodies["f1"]!, at: { x: 3, y: 0, z: 3 }, yaw: 240, proficiency: { level: "trained" } },
],
composition: scene.node,
props,
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.