Skip to Content

Partner stretch

A hamstring stretch with a partner: one lies on the back with the right leg raised straight, and the partner walks up and holds the raised calf.

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

// fly: body m2, at (0, 0) m, facing 0°, trained
const fly = HumanChain.subject("fly")
  .registered("pnfHamstring", {}, "pnf");

// gia: body f1, at (0, 1.3) m, facing 180°, trained
const gia = HumanChain.subject("gia")
  .act("approach", {
      target: { kind: "person", subject: "fly", region: "calfRight" },
      at: 0.05,
    })
  .sync({ of: "pnf", event: "reachEnd1" })
  .act("touch", {
      target: { kind: "person", subject: "fly", region: "calfRight" },
      kind: "hold",
      hold: 12,
    });

const scene = fly.with(gia);

// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanSportWorkout.pnfHamstring];

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

const input: IAutoMovieMotionHumanPerformance.IInput = {
  seed: "partner-stretch",
  performers: [
    { subject: "fly", body: bodies["m2"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
    { subject: "gia", body: bodies["f1"]!, at: { x: 0, y: 0, z: 1.3 }, yaw: 180, proficiency: { level: "trained" } },
  ],
  composition: scene.node,
  laws,
};
const performance = new HumanPerformance(input);