Skip to Content

A fall

One person staggers, goes down and gets back up; another braces, crouches and kneels, then rises, rests a hand on her hip and wipes down an imagined counter.

The packages refuse this scene today, in their own words on the view below. #3544 fixes it.

Computing 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";

// dee: body m1, at (0, 0) m, facing 0°, trained
const dee = HumanChain.subject("dee")
  .act("walk", { to: { x: 0, y: 0, z: 1 } })
  .act("stagger", { speed: 1.2 })
  .act("knockdown", { seconds: 1 })
  .act("getUp", {});

// eve: body f2, at (1.6, 1.2) m, facing 270°, trained
const eve = HumanChain.subject("eve")
  .act("stand", { seconds: 1.2 })
  .act("brace", { kind: "impact", seconds: 0.6 })
  .act("crouch", { hold: 1 })
  .act("kneel", { kind: "one", hold: 1.2 })
  .act("touch", {
      target: { kind: "self", region: "hipRight" },
      kind: "hold",
    })
  .act("wipe", {
      on: {
        kind: "point",
        at: { x: -0.15, y: 0.85, z: 0.3 },
        frame: "performer",
      },
      cycles: 2,
    });

const scene = dee.with(eve);

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "fall",
  performers: [
    { subject: "dee", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "eve", body: bodies["f2"]!, at: { x: 1.6, y: 0, z: 1.2 }, yaw: 270, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
};
const performance = new HumanPerformance(input);