Mirror Engine
V5
How To
Mirror Engine Logo

Mirror Engine API


Mirror Engine API / SkinInstance

Class: SkinInstance

A skin instance is responsible for generating the matrix palette that is used to skin vertices from object space to world space.

Constructors

new SkinInstance()

new SkinInstance(skin: Skin): SkinInstance

Create a new SkinInstance instance.

Parameters

skin

Skin

The skin that will provide the inverse bind pose matrices to generate the final matrix palette.

Returns

SkinInstance

Properties

bones

bones: GraphNode[];

An array of nodes representing each bone in this skin instance.

Methods

initSkin()

initSkin(skin: Skin): void

Parameters

skin

Skin

The skin.

Returns

void

Mirror Engine Logo