Class: MorphAnimation

MorphAnimation

MorphAnimation is a Component that can be added to an Entity to control morph target animations. The Mesh objects used by the Entity's MeshInstance components must contain morph targets assigned with Mesh#addMorphTarget. Up to 8 morph targets can be active at a time. If more morph targets have a weight assigned to them, only those with the highest weights are used.


new MorphAnimation( [morphPose])

Parameters:
Name Type Argument Description
morphPose <optional>

An optional MorphPose. This allows sharing poses across entities.

Author:
  • derschmale <http://www.derschmale.com>
See:

Extends

Members


acceptVisitor

If provided, this method will be called by the scene partition traverser, allowing collection by the renderer.

Inherited From:

bounds

If a Component has a scene presence, it can have bounds

Inherited From:

enabled

Defines whether or not this component should be enabled.

Inherited From:

Methods


bindListener()

Listens to the entity's messenger for a given message type.

Inherited From:

broadcast()

Broadcasts a message dispatched by the owning Entity's onMessage Signal.

Inherited From:

clone()

Creates a duplicate of this Component.

Inherited From:
Overrides:

hasListeners()

Tests whether the given signal is being listened to.

Inherited From:

invalidateBounds()

Marks the bounds as invalid, causing them to be recalculated when next queried.

Inherited From:

setWeight(name, value)

Sets the weight of the morph target with the given name.

Parameters:
Name Type Description
name string

The name of the morph target to influence.

value number

The new weight of the morph target.


unbindListener()

Listens to the entity's messenger for a given message type.

Inherited From: