Skip to content

Documentation / scene / AssetSkeleton

Class: AssetSkeleton

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

Skeleton information for model loading

Extends

Constructors

Constructor

new AssetSkeleton(name): AssetSkeleton

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

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:637

The pivot node


joints

joints: AssetHierarchyNode[]

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

Joints of the skeleton


inverseBindMatrices

inverseBindMatrices: Matrix4x4[]

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

Inverse of the binding matrices of the joints


bindPose

bindPose: object[]

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

Binding pose matrices of the joints

position

position: Vector3

rotation

rotation: Quaternion

scale

scale: Vector3


humanoidJointMapping

humanoidJointMapping: HumanoidJointMapping<AssetHierarchyNode>

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

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:674

Returns

AssetHierarchyNode

Methods

addJoint()

addJoint(joint, inverseBindMatrix): void

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

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.