Skip to content

Class: SkeletonPose

Skeleton animation consists of many skeleton pose, and each pose describes the transformation information of all bone

Constructors

Properties

Accessors

Methods

Constructors

constructor

new SkeletonPose(skeleton, useGlobalMatrix?): SkeletonPose

Parameters

NameTypeDefault value
skeletonSkeletonundefined
useGlobalMatrixbooleanfalse

Returns

SkeletonPose

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:21

Properties

time

time: number

time of this pose in owner animation clip

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:16

Accessors

numJoint

get numJoint(): number

Returns joints count of owner skeleton

Returns

number

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:67


joints

get joints(): JointPose[]

Returns all joint pose

Returns

JointPose[]

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:74


jointMatrixIndexTable

get jointMatrixIndexTable(): number[]

Returns list of matrix's index

Returns

number[]

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:81

Methods

buildSkeletonPose

buildSkeletonPose(poseData): void

build this pose from float32 array data

Parameters

NameType
poseDataFloat32Array

Returns

void

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:35


lerp

lerp(a, b, weight): void

Returns lerped skeletonPose from pose a to pose b

Parameters

NameTypeDescription
aSkeletonPoseselected pose No.1
bSkeletonPoseselected pose No.2
weightnumbernumber

Returns

void

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:91


copyFrom

copyFrom(other): void

Copy skeleton pose from other skeleton pose

Parameters

NameTypeDescription
otherSkeletonPosesource skeleton pose

Returns

void

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:112


reset

reset(): void

Reset this skeleton pose

Returns

void

Defined in

src/components/anim/skeletonAnim/SkeletonPose.ts:121