API Reference

Class List

pc.Morph

Contains a list of pc.MorphTarget, a combined AABB and some associated data.

Summary

Methods

addTarget

Adds a new morph target to the list.

getTarget

Gets the morph target by index.

removeTarget

Remove the specified morph target from the list.

Details

Constructor

Morph(targets)

Parameters

targetspc.MorphTarget[]

A list of morph targets.

Methods

addTarget(target)

Adds a new morph target to the list.

Parameters

targetpc.MorphTarget

A new morph target.

getTarget(index)

Gets the morph target by index.

Parameters

indexnumber

An index of morph target.

Returns

pc.MorphTarget

A morph target object.

removeTarget(target)

Remove the specified morph target from the list.

Parameters

targetpc.MorphTarget

A morph target to delete.