Skip to Content

Reload drill

A shooter takes a handgun from the range counter, presses the support palm once to the magazine well and lays the gun back down.

The packages refuse this scene today, in their own words on the view below. #3528 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, HumanObject, HumanPerformance, HumanWeaponFirearm, HumanWeaponMelee } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";

const counter = archetypes.createTable({ kind: "counter" });
const counterAt = { at: { x: 0, y: 0, z: 0.65 }, yaw: 180 };
const gun = archetypes.createHandgun({ frame: "compact" });
const gunAt = { at: { x: -0.18, y: 0.914, z: 0.42 }, yaw: 0 };

// fil: body m2, at (0, 0.12) m, facing 0°, trained
const fil = HumanChain.subject("fil")
  .registered("drawFirearm", { prop: "gun" })
  .registered("reloadFirearm", {
      target: { kind: "prop", subject: "gun", point: "magazine" },
    })
  .registered("holsterFirearm", { prop: "gun", at: { x: -0.18, y: 0.914, z: 0.42 } });

const scene = fil;

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanWeaponFirearm.draw, HumanWeaponMelee.reload, HumanWeaponFirearm.holster];

const props = [
  HumanObject.prop("counter", counter, counterAt),
  HumanObject.prop("gun", gun, gunAt),
];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "reload-drill",
  performers: [
    { subject: "fil", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0.12 }, yaw: 0, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  props,
  laws,
};
const performance = new HumanPerformance(input);