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 ​
| Parameter | Type |
|---|---|
def | RigDef |
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 ​
| Parameter | Type |
|---|---|
shoulder | RigPoint |
limb | Limb |
Returns ​
solve() ​
ts
solve(pose, bulky?): Joints;Defined in: src/rig/Skeleton.ts:27
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
pose | RigPose | undefined |
bulky | boolean | false |