Driving a screw
A carpenter takes a screwdriver up from the bench in line with the forearm and drives a screw into the bench top.
The packages refuse this scene today, in their own words on the view below. #3543 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, HumanLabour, HumanObject, HumanPerformance } from "@automovie/motions";
import * as archetypes from "@automovie/archetypes";
const bench = archetypes.createTable({ kind: "counter" });
const benchAt = { at: { x: 0, y: 0, z: 0.53 }, yaw: 180 };
const driver = archetypes.createTool({ kind: "screwdriver" });
const driverAt = { position: { x: -0.18, y: 0.914, z: 0.3 }, rotation: { x: 0.7071067811865476, y: 0, z: 0, w: 0.7071067811865476 } };
// w5: body f1, at (0, 0) m, facing 0°, trained
const w5 = HumanChain.subject("w5")
.act("pickUp", {
prop: "driver",
handle: "grip",
use: { tip: "face", line: "forearm" },
})
.registered("screw", {
prop: "driver",
on: {
kind: "point",
at: { x: -0.1, y: 0.914, z: 0.4 },
frame: "world",
},
});
const scene = w5;
// The lexicon's laws this scene's rows perform, registered with the performance.
const laws = [HumanLabour.screw];
const props = [
HumanObject.prop("bench", bench, benchAt),
HumanObject.prop("driver", driver, driverAt),
];
// Each body id's motion body, prepared from the site's measures.
declare const bodies: Record<string, IAutoMovieMotionHumanBody>;
const input: IAutoMovieMotionHumanPerformance.IInput = {
seed: "driving-a-screw",
performers: [
{ subject: "w5", body: bodies["f1"]!, at: { x: 0, y: 0, z: 0 }, yaw: 0, proficiency: { level: "trained" } },
],
composition: scene.node,
props,
laws,
};
const performance = new HumanPerformance(input);Each person's actions on the film clock, with their named instants, as the engine placed them.
The timeline appears when the take is drawn.
The same composition in 4 takes on the player's clock. Each changes one choice and keeps the rest; the other takes are computed in this page, which takes a few seconds.