Skip to Content

Morning routine

Someone wakes up: a big stretch, rubbing the eyes, a shave and a look at the watch.

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

// fay: body f1, at (0, 0) m, facing 0°, trained
const fay = HumanChain.subject("fay")
  .registered("bigStretch", {})
  .registered("rubEyes", {})
  .registered("shave", {})
  .registered("checkWatch", {});

const scene = fay;

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStance.bigStretch, HumanHabit.rubEyes, HumanHabit.shave, HumanHabit.checkWatch];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "morning",
  performers: [
    { subject: "fay", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);