mapBones
mapBones<
B
,T
>(mapFn
,bones
): { [key in “spine” | “spine1” | “spine2” | “neck” | “head” | “headEnd” | “shoulderL” | “shoulderR” | “armL” | “armR” | “forearmL” | “forearmR” | “handL” | “handR” | “uplegL” | “uplegR” | “legL” | “legR” | “footL” | “footR” | “hips” | “toeL” | “toeR”]: T }
Mapping of bones
Creates a BoneMap | mapped object where values of properties for selected bones of skeleton are evaluated by provided mapping function.
Type Parameters
• B extends readonly ("spine"
| "spine1"
| "spine2"
| "neck"
| "head"
| "headEnd"
| "shoulderL"
| "shoulderR"
| "armL"
| "armR"
| "forearmL"
| "forearmR"
| "handL"
| "handR"
| "uplegL"
| "uplegR"
| "legL"
| "legR"
| "footL"
| "footR"
| "hips"
| "toeL"
| "toeR"
)[]
Readonly list of bones
• T
Type of mapped object values
Parameters
• mapFn
Function mapping a bone to a value
• bones: B
Returns
{ [key in “spine” | “spine1” | “spine2” | “neck” | “head” | “headEnd” | “shoulderL” | “shoulderR” | “armL” | “armR” | “forearmL” | “forearmR” | “handL” | “handR” | “uplegL” | “uplegR” | “legL” | “legR” | “footL” | “footR” | “hips” | “toeL” | “toeR”]: T }
Mapped object of selected skeleton bones