Skip to content

Documentation / scene / AssetSkeleton

Class: AssetSkeleton

Defined in: libs/scene/src/asset/model.ts:665

Skeleton information for model loading

Extends

Constructors

Constructor

new AssetSkeleton(name): AssetSkeleton

Defined in: libs/scene/src/asset/model.ts:682

Creates an instance of AssetSkeleton

Parameters

name

string

Name of the skeleton

Returns

AssetSkeleton

Overrides

NamedObject.constructor

Properties

name

name: string

Defined in: libs/scene/src/asset/model.ts:67

Inherited from

NamedObject.name


pivot

pivot: AssetHierarchyNode

Defined in: libs/scene/src/asset/model.ts:667

The pivot node


joints

joints: AssetHierarchyNode[]

Defined in: libs/scene/src/asset/model.ts:669

Joints of the skeleton


inverseBindMatrices

inverseBindMatrices: Matrix4x4[]

Defined in: libs/scene/src/asset/model.ts:671

Inverse of the binding matrices of the joints


bindPose

bindPose: object[]

Defined in: libs/scene/src/asset/model.ts:673

Binding pose matrices of the joints

position

position: Vector3

rotation

rotation: Quaternion

scale

scale: Vector3


retargetPose

retargetPose: object[]

Defined in: libs/scene/src/asset/model.ts:675

Optional humanoid retarget reference pose, ordered like joints.

position

position: Vector3

rotation

rotation: Quaternion

scale

scale: Vector3


humanoidJointMapping

humanoidJointMapping: HumanoidJointMapping<AssetHierarchyNode>

Defined in: libs/scene/src/asset/model.ts:677

Explicit humanoid joint mapping, when supplied by the source asset.

Accessors

root

Get Signature

get root(): AssetHierarchyNode

Defined in: libs/scene/src/asset/model.ts:707

Returns

AssetHierarchyNode

Methods

addJoint()

addJoint(joint, inverseBindMatrix): void

Defined in: libs/scene/src/asset/model.ts:697

Adds a joint to the skeleton

Parameters

joint

AssetHierarchyNode

The joint node

inverseBindMatrix

Matrix4x4

Inverse binding matrix of the joint

Returns

void

Released under the MIT License.