Skip to Content

Scuffle

An attacker clinches a victim and pulls his hair until the victim shoves him 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 { HumanChain, HumanEmblem, HumanPerformance, HumanPose, HumanStageFight } from "@automovie/motions";

// zak: body m2, at (0, 0) m, facing 0°, trained
const zak = HumanChain.subject("zak")
  .registered("grab", {
      target: { kind: "person", subject: "abe", region: "upperArmRight" },
    }, "sc-grab")
  .act("clinch", { partner: "abe", hold: 1.5 }, "sc-tie")
  .registered("hairPull", {
      target: { kind: "person", subject: "abe", region: "crown" },
    }, "pull")
  .registered("pushed", {
      from: { kind: "person", subject: "abe", region: "palmRight" },
    }, "sc-off")
  .registered("shakeFist", {})
  .registered("leanBack", {
      from: { kind: "person", subject: "abe", region: "palmRight" },
    }, "sc-lean")
  .registered("dontKnow", {});

// abe: body m1, at (0, 0.6) m, facing 180°, trained
const abe = HumanChain.subject("abe")
  .registered("grabbed", {
      from: { kind: "person", subject: "zak", region: "palmRight" },
    })
  .sync({ of: "sc-grab" })
  .registered("wince", {})
  .registered("struggle", {
      target: { kind: "person", subject: "zak", region: "forearmLeft" },
      other: { kind: "person", subject: "zak", region: "forearmRight" },
    })
  .sync({ of: "sc-tie", event: "ready" })
  .registered("grabbed", {
      from: { kind: "person", subject: "zak", region: "palmRight" },
    })
  .sync({ of: "pull" })
  .registered("shove", {
      target: { kind: "person", subject: "zak", region: "chestLeft" },
      side: "right",
    })
  .sync({ of: "sc-off", event: "start", align: "stroke" })
  .registered("stageSlap", {
      target: { kind: "person", subject: "zak", region: "cheekLeft" },
    })
  .sync({ of: "sc-lean", event: "stroke", align: "stroke" });

const scene = zak.with(abe);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanStageFight.grab, HumanStageFight.hairPull, HumanStageFight.pushed, HumanEmblem.shakeFist, HumanStageFight.leanBack, HumanEmblem.dontKnow, HumanStageFight.grabbed, HumanPose.wince, HumanStageFight.struggle, HumanStageFight.shove, HumanStageFight.stageSlap];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "scuffle",
  performers: [
    { subject: "zak", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "abe", body: bodies["m1"]!, at: { x: 0, y: 0, z: 0.6 }, yaw: 180, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);