Skip to content

mapSkeleton

mapSkeleton<T>(mapFn): object

Mapping of skeleton

Creates a SkeletonMap | mapped object where value of property for each bone of skeleton is evaluated by provided mapping function.

Type Parameters

T

Type of mapped object values

Parameters

mapFn

Function mapping a bone to a value

Returns

object

Mapped object of all skeleton bones

armL

armL: T

armR

armR: T

footL

footL: T

footR

footR: T

forearmL

forearmL: T

forearmR

forearmR: T

handL

handL: T

handR

handR: T

head: T

headEnd

headEnd: T

hips

hips: T

legL

legL: T

legR

legR: T

neck

neck: T

shoulderL

shoulderL: T

shoulderR

shoulderR: T

spine

spine: T

spine1

spine1: T

spine2

spine2: T

toeL

toeL: T

toeR

toeR: T

uplegL

uplegL: T

uplegR

uplegR: T