Skip to Content

Charades

Three friends talk with their hands only: thumbs up, counting to three and air quotes; I don't know, a facepalm, okay and a victory sign; come here, halt, hush, a finger snap and hands up.

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

// wes: body m1, at (0, 0) m, facing 30°, trained
const wes = HumanChain.subject("wes")
  .registered("thumbsUp", {})
  .registered("countOne", {})
  .registered("countTwo", {})
  .registered("countThree", {})
  .registered("airQuotes", {});

// xan: body f1, at (1.1, 0.4) m, facing 270°, trained
const xan = HumanChain.subject("xan")
  .registered("dontKnow", {})
  .registered("facepalm", {})
  .registered("okSign", {})
  .registered("victorySign", {});

// yui: body m2, at (0.4, 1.1) m, facing 200°, trained
const yui = HumanChain.subject("yui")
  .registered("comeHere", {})
  .registered("halt", {})
  .registered("hush", {})
  .registered("fingerSnap", {})
  .registered("handsUp", {});

const scene = wes.with(xan, yui);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanEmblem.thumbsUp, HumanEmblem.countOne, HumanEmblem.countTwo, HumanEmblem.countThree, HumanEmblem.airQuotes, HumanEmblem.dontKnow, HumanEmblem.facepalm, HumanEmblem.okSign, HumanEmblem.victorySign, HumanEmblem.comeHere, HumanEmblem.halt, HumanEmblem.hush, HumanEmblem.fingerSnap, HumanEmblem.handsUp];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "charades",
  performers: [
    { subject: "wes", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 30, proficiency: { level: "trained" } },
    { subject: "xan", body: bodies["f1"]!, at: { x: 1.1, y: 0, z: 0.4 }, yaw: 270, proficiency: { level: "trained" } },
    { subject: "yui", body: bodies["m2"]!, at: { x: 0.4, y: 0, z: 1.1 }, yaw: 200, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);