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
Section titled “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
Section titled “Parameters”(b) => T
Function mapping a bone to a value
B
Returns
Section titled “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