Throw-in and goal
A throw-in is headed on and chest-trapped, and the striker scores past a diving keeper.
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, HumanGait, HumanObject, HumanPerformance, HumanSport, HumanSportThrow, HumanSportWorkout, HumanStance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const ball = archetypes.createBall({ kind: "football" });
const ballAt = { at: { x: 0, y: 0, z: 3.3 }, yaw: 0 };
// ali: body m1, at (-3, -5.4) m, facing 0°, trained
const ali = HumanChain.subject("ali")
.registered("jog", { to: { x: -3, y: 0, z: 0 }, face: 90 })
.act("look", {
with: "trunk",
target: { kind: "person", subject: "bea", region: "face" },
})
.act("gesture", {
kind: "point",
target: { kind: "person", subject: "cyr", region: "face" },
})
.registered("throwIn", {}, "fs-throw")
.registered("jog", { to: { x: -1.5, y: 0, z: 1.5 } })
.act("gesture", { kind: "cheer" });
// bea: body f1, at (2.5, -2) m, facing 270°, trained
const bea = HumanChain.subject("bea")
.registered("jog", { to: { x: 0.5, y: 0, z: -3 } })
.registered("jog", { to: { x: 0, y: 0, z: 0 }, face: 270 })
.act("gesture", { kind: "raiseHand", side: "left" })
.registered("header", {}, "fs-header")
.sync({
of: "fs-throw",
event: "stroke",
align: "contact1",
offset: 0.6,
})
.registered("jog", { to: { x: 0.9, y: 0, z: 2.6 } })
.act("gesture", { kind: "cheer" });
// cyr: body m2, at (2, 1) m, facing 0°, trained
const cyr = HumanChain.subject("cyr")
.registered("jog", { to: { x: 2.3, y: 0, z: 4 } })
.registered("jog", { to: { x: 0, y: 0, z: 3 }, face: 0 })
.act("gesture", { kind: "raiseHand", side: "left" })
.registered("chestTrap", {})
.sync({
of: "fs-header",
event: "contact1",
align: "contact1",
offset: 0.5,
})
.registered("thighTrap", {})
.registered("kickLeft", { ball: "ball" }, "shot")
.registered("fistPump", {});
// dag: body m1, at (0, 11) m, facing 180°, trained
const dag = HumanChain.subject("dag")
.act("gesture", { kind: "clap", count: 2 })
.act("gesture", {
kind: "point",
target: { kind: "person", subject: "bea", region: "face" },
})
.act("step", { direction: "left", steps: 1 })
.act("step", { direction: "right", steps: 2 })
.act("step", { direction: "left", steps: 1 })
.act("gesture", { kind: "clap", count: 2 })
.act("gesture", { kind: "stopPalm" })
.act("step", { direction: "right", steps: 1 })
.act("step", { direction: "left", steps: 1 })
.registered("goalkeeperDiveRight", {})
.sync({ of: "shot" })
.act("getUp", {});
const scene = ali.with(bea, cyr, dag);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanGait.jog, HumanSport.throwIn, HumanSportWorkout.header, HumanSportWorkout.chestTrap, HumanSportWorkout.thighTrap, HumanSportThrow.kickLeft, HumanStance.fistPump, HumanFloorFall.goalkeeperDiveRight];
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: "five-a-side",
performers: [
{ subject: "ali", body: bodies["m1"]!, at: { x: -3, y: 0, z: -5.4 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "bea", body: bodies["f1"]!, at: { x: 2.5, y: 0, z: -2 }, yaw: 270, proficiency: { level: "trained" } },
{ subject: "cyr", body: bodies["m2"]!, at: { x: 2, y: 0, z: 1 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "dag", body: bodies["m1"]!, at: { x: 0, y: 0, z: 11 }, yaw: 180, 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.