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
Name | Type | Default value |
---|---|---|
skeleton | Skeleton | undefined |
useGlobalMatrix | boolean | false |
Returns
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
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
Name | Type |
---|---|
poseData | Float32Array |
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
Name | Type | Description |
---|---|---|
a | SkeletonPose | selected pose No.1 |
b | SkeletonPose | selected pose No.2 |
weight | number | number |
Returns
void
Defined in
src/components/anim/skeletonAnim/SkeletonPose.ts:91
copyFrom
▸ copyFrom(other
): void
Copy skeleton pose from other skeleton pose
Parameters
Name | Type | Description |
---|---|---|
other | SkeletonPose | source skeleton pose |
Returns
void
Defined in
src/components/anim/skeletonAnim/SkeletonPose.ts:112
reset
▸ reset(): void
Reset this skeleton pose
Returns
void