Skip to Content

Rescue

A hurt woman waves for help; a rescuer hurries over, kneels and carries her off.

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 { HumanCarried, HumanChain, HumanGait, HumanPerformance, HumanPose } from "@automovie/motions";

// res: body m2, at (0, -3.5) m, facing 0°, trained
const res = HumanChain.subject("res")
  .act("look", {
      target: {
        kind: "point",
        frame: "world",
        at: { x: 0, y: 1.2, z: 1.6 },
      },
      with: "trunk",
      cue: "seen",
    }, "rescue-seen")
  .registered("hurry", { to: { x: 0, y: 0, z: 1 } })
  .registered("kneelBriefly", {})
  .act("walk", { to: { x: 0, y: 0, z: -4.3 } }, "carry")
  .over((overlay) =>
    overlay
      .registered("bearing", { carry: "overShoulder", seconds: 5.8 })
  );

// hur: body f1, at (0, 1.6) m, facing 180°, trained
const hur = HumanChain.subject("hur")
  .registered("wince", {})
  .act("touch", {
      target: { kind: "self", region: "hipRight" },
      kind: "hold",
      hold: 1,
    })
  .act("gesture", { kind: "wave", count: 4 })
  .registered("wince", {})
  .act("touch", {
      target: { kind: "self", region: "hipRight" },
      kind: "hold",
      hold: 0.3,
    })
  .registered("borne", { by: "res", carry: "overShoulder", seconds: 5.8, lift: 1 })
  .sync({ of: "carry" });

const scene = res.with(hur);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanGait.hurry, HumanPose.kneelBriefly, HumanCarried.bearing, HumanPose.wince, HumanCarried.borne];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "rescue",
  performers: [
    { subject: "res", body: bodies["m2"]!, at: { x: 0, y: 0, z: -3.5 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "hur", body: bodies["f1"]!, at: { x: 0, y: 0, z: 1.6 }, yaw: 180, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);