Skip to Content

Three pushes

A participant takes pushes from behind, the side and the front, and steps back to his mark.

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, HumanPerformance } from "@automovie/motions";

// bal: body m1, at (0, 0) m, facing 0°, trained
const bal = HumanChain.subject("bal")
  .act("stand", { seconds: 0.5 }, "bi-start")
  .act("perturb", {})
  .act("look", {
      target: {
        kind: "point",
        at: { x: 0, y: 1.5, z: -1.5 },
        frame: "world",
      },
      cue: "signal",
      seconds: 1.2,
    })
  .act("gesture", { kind: "squareShoulders" })
  .act("stand", { seconds: 3 })
  .act("perturb", {})
  .sync({ of: "bi-start", event: "start", offset: 6.5 })
  .act("look", {
      target: {
        kind: "point",
        at: { x: 1.5, y: 1.5, z: 0 },
        frame: "world",
      },
      cue: "signal",
      seconds: 1.4,
    })
  .act("stand", { seconds: 3 })
  .act("perturb", {})
  .sync({ of: "bi-start", event: "start", offset: 10.6 })
  .act("step", { direction: "forward", steps: 1 })
  .act("gesture", { kind: "nod" });

const scene = bal;

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "balance-impulse",
  performers: [
    { subject: "bal", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  forces: [
    {
    kind: "impulse",
    subject: "bal",
    at: "sternum",
    seconds: 0.5,
    impulse: { x: 0, y: 0, z: 3 },
  },
    {
    kind: "impulse",
    subject: "bal",
    at: "sternum",
    seconds: 6.5,
    impulse: { x: -6, y: 0, z: 0 },
  },
    {
    kind: "impulse",
    subject: "bal",
    at: "sternum",
    seconds: 10.6,
    impulse: { x: 0, y: 0, z: -24 },
  },
  ],
};
const performance = new HumanPerformance(input);