Skip to content

1681-engine / index / Skeleton

Class: Skeleton ​

Defined in: src/rig/Skeleton.ts:20

Turns a pose (bone angles and lengths) into joint positions on the character's 20x24 grid.

Constructors ​

Constructor ​

ts
new Skeleton(def): Skeleton;

Defined in: src/rig/Skeleton.ts:23

Parameters ​

ParameterType
defRigDef

Returns ​

Skeleton

Methods ​

frontArm() ​

ts
frontArm(shoulder, limb): [RigPoint, RigPoint, number];

Defined in: src/rig/Skeleton.ts:50

Elbow, wrist and forearm direction of the front arm (or of its motion smear) hung from shoulder. The fist keeps the frame's last column for its outline: an arm reaching past that (a swing, a thrust, a draw on a bulky body) is pulled back whole, so the forearm — and the weapon laid along it — keeps its angle.

Parameters ​

ParameterType
shoulderRigPoint
limbLimb

Returns ​

[RigPoint, RigPoint, number]


solve() ​

ts
solve(pose, bulky?): Joints;

Defined in: src/rig/Skeleton.ts:27

Parameters ​

ParameterTypeDefault value
poseRigPoseundefined
bulkybooleanfalse

Returns ​

Joints

Released under the MIT License.