Bar work
Two people at the pull-up bars: a dead hang and chin-ups, hanging knee raises and swings.
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, HumanObject, HumanPerformance, HumanSportWorkout } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const barS = archetypes.createPullUpBar({ kind: "gym" });
const barSAt = { at: { x: -0.8, y: 0, z: 0 }, yaw: 0 };
const barT = archetypes.createPullUpBar({ kind: "gym" });
const barTAt = { at: { x: 0.8, y: 0, z: 0 }, yaw: 0 };
// sol: body m1, at (-0.8, 0) m, facing 0°, trained
const sol = HumanChain.subject("sol")
.registered("deadHang", { hold: 1, on: { prop: "barS", affordance: "bar" } })
.registered("chinUp", { reps: 3, on: { prop: "barS", affordance: "bar" } })
.act("selfAction", { kind: "shoulderRoll" });
// tai: body f1, at (0.8, 0) m, facing 0°, trained
const tai = HumanChain.subject("tai")
.registered("kneeRaise", {
reps: 4,
on: { prop: "barT", affordance: "bar" },
manner: { pace: 1.05 },
})
.registered("barSwing", {
reps: 2,
on: { prop: "barT", affordance: "bar" },
manner: { pace: 1.05 },
});
const scene = sol.with(tai);
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.deadHang, HumanSportWorkout.chinUp, HumanSportWorkout.kneeRaise, HumanSportWorkout.barSwing];
const props = [
HumanObject.prop("barS", barS, barSAt),
HumanObject.prop("barT", barT, barTAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "bar-work",
performers: [
{ subject: "sol", body: bodies["m1"]!, at: { x: -0.8, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
{ subject: "tai", body: bodies["f1"]!, at: { x: 0.8, y: 0, z: 0 }, yaw: 0, 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.