Skip to Content

Low table scramble

An athlete scrambles onto a low table, pumps a fist and jumps down the far side.

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, HumanSelfActionRows, HumanSupportRows } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";

const table = archetypes.createTable({ kind: "coffee" });
const tableAt = { at: { x: 0, y: 0, z: 0.65 }, yaw: 180 };

// ath: body m1, at (0, -3) m, facing 0°, trained
const ath = HumanChain.subject("ath")
  .registered("selfShoulderRoll", { count: 1 })
  .act("run", { to: { x: 0, y: 0, z: 0 }, pace: "jog", face: 0 })
  .registered("scramble", { on: { kind: "prop", subject: "table", point: "front" } })
  .registered("selfFistPump", { count: 2 })
  .act("jump", { to: { x: 0, y: 0, z: 1.7 }, apex: 0.25 })
  .registered("selfVictory", {});

const scene = ath;

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSelfActionRows.selfShoulderRoll, HumanSupportRows.scramble, HumanSelfActionRows.selfFistPump, HumanSelfActionRows.selfVictory];

const props = [
  HumanObject.prop("table", table, tableAt),
];

// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "low-table-scramble",
  performers: [
    { subject: "ath", body: bodies["m1"]!, at: { x: 0, y: 0, z: -3 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  props,
  laws,
};
const performance = new HumanPerformance(input);