Animation · function
buildRetargetMap
Match two skeletons by joint name.
Explained in Animation.
function buildRetargetMap(from: Skeleton, to: Skeleton): RetargetMapimport { buildRetargetMap } from '@driftengine/animation';Parameters
| Parameter | Type | Description |
|---|---|---|
from | Skeleton | |
to | Skeleton |
In depth
Exact matching, and no name database. A table of "hips means Hips means pelvis" rots silently and its failure is a limb that does not move, which no test of this engine could catch — the same argument the gamepad layer makes for shipping no device database. A consumer whose two rigs disagree about capitalisation knows that and can rename; this engine guessing would be wrong in a way they could not see.