Skip to Content

Farewell at the station

Three people part: kisses on the cheek and the forehead, a fist bump and a pinky promise, a pat on one shoulder and a comforting hand on the other, a hand on the heart, a blown kiss, and one trudges away.

The packages refuse this scene today, in their own words on the view below. #3552 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, HumanEmblem, HumanGait, HumanPerformance, HumanSocial } from "@automovie/motions";

// tia: body f1, at (0, 0) m, facing 0°, trained
const tia = HumanChain.subject("tia")
  .registered("cheekKiss", { partner: "uli" })
  .registered("fistBump", { partner: "val" })
  .registered("pinkyPromise", { partner: "val" })
  .registered("blownKiss", {})
  .registered("blownKissSend", {})
  .registered("trudge", { to: { x: 0, y: 0, z: -3 } });

// uli: body m1, at (-0.1, 0.75) m, facing 180°, trained
const uli = HumanChain.subject("uli")
  .registered("cheekKiss", { partner: "tia" })
  .act("kiss", { partner: "tia", region: "forehead" })
  .registered("shoulderPat", {
      target: { kind: "person", subject: "val", region: "shoulderLeft" },
    })
  .registered("comfort", {
      target: { kind: "person", subject: "val", region: "shoulderRight" },
    });

// val: body f2, at (0.5, 0.45) m, facing 240°, trained
const val = HumanChain.subject("val")
  .registered("fistBump", { partner: "tia" })
  .registered("pinkyPromise", { partner: "tia" })
  .registered("handOnHeart", {});

const scene = tia.with(uli, val);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSocial.cheekKiss, HumanSocial.fistBump, HumanSocial.pinkyPromise, HumanEmblem.blownKiss, HumanEmblem.blownKissSend, HumanGait.trudge, HumanSocial.shoulderPat, HumanSocial.comfort, HumanEmblem.handOnHeart];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "farewell",
  performers: [
    { subject: "tia", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "uli", body: bodies["m1"]!, at: { x: -0.1, y: 0, z: 0.75 }, yaw: 180, proficiency: { level: "trained" } },
    { subject: "val", body: bodies["f2"]!, at: { x: 0.5, y: 0, z: 0.45 }, yaw: 240, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);