Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ARAnimationSelect Class Reference

Animator rule animation select. More...

Inheritance diagram for Dragengine.Scenery.ARAnimationSelect:
Dragengine.Scenery.AnimatorRule

Public Member Functions

Constructors
ARAnimationSelect new ()
 Create animator rule.
Management
void setEnablePosition (bool enabled)
 Enable position modification.
void setEnableOrientation (bool enabled)
 Enable orientation modification.
void setEnableSize (bool enabled)
 Enable size modification.
void setEnableVertexPositionSet (bool enabled)
 Enable vertex position set modification.
int getMoveCount ()
 Number of moves.
String getMoveAt (int index)
 Move at index.
void addMove (String moveName)
 Add move.
void removeAllMoves ()
 Remove all move.
void targetAddLink (ARAnimationSelectTarget target, int link)
 Add link to target.
void targetRemoveAllLinks (ARAnimationSelectTarget target)
 Remove all links from target.
Public Member Functions inherited from Dragengine.Scenery.AnimatorRule
void setEnabled (bool enabled)
 Set if rule is enabled.
void setBlendMode (AnimatorRuleBlendMode blendMode)
 Set blend mode.
void setBlendFactor (float blendFactor)
 Set blend factor clamped to the range from 0 to 1.
void setInvertBlendFactor (bool invertBlendFactor)
 Invert blend factor (1 - blendFactor).
void addBone (String bone)
 Add bone.
void removeAllBones ()
 Remove all bones.
void copyBonesFrom (AnimatorRule rule)
 Copy all bones from another rule.
void addVertexPositionSet (String vertexPositionSet)
 Add vertex position set.
void removeAllVertexPositionSets ()
 Remove all vertex position sets.
void copyVertexPositionSetsFrom (AnimatorRule rule)
 Copy all vertex position sets from another rule.

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Scenery.AnimatorRule

Detailed Description

Animator rule animation select.

Apply animation state from an animation move selected from a list of animation movers.

The animation move to use is selected using a link. The animation moves are distributed evenly across the 0 to 1 link value range in the order they are defined. The closest animation move is chosen. To blend between multiple animation states use multiple deAnimatorRuleAnimationSelect.

This rule is best used for automated animation system requiring picking animations from a list of animations. This can be for example a motion matching system using a database of animations.

This is a native class. It can not be subclassed.

Member Function Documentation

◆ addMove()

void Dragengine.Scenery.ARAnimationSelect.addMove ( String moveName)

Add move.

Referenced by removeAllMoves().

◆ getMoveAt()

String Dragengine.Scenery.ARAnimationSelect.getMoveAt ( int index)

Move at index.

References getMoveCount().

Referenced by removeAllMoves().

◆ getMoveCount()

int Dragengine.Scenery.ARAnimationSelect.getMoveCount ( )

Number of moves.

Referenced by getMoveAt().

◆ new()

ARAnimationSelect Dragengine.Scenery.ARAnimationSelect.new ( )

Create animator rule.

Reimplemented from Dragengine.Scenery.AnimatorRule.

References new().

Referenced by new().

◆ removeAllMoves()

void Dragengine.Scenery.ARAnimationSelect.removeAllMoves ( )

Remove all move.

References addMove(), and getMoveAt().

Referenced by targetAddLink().

◆ setEnableOrientation()

void Dragengine.Scenery.ARAnimationSelect.setEnableOrientation ( bool enabled)

Enable orientation modification.

References setEnableOrientation().

Referenced by setEnableOrientation().

◆ setEnablePosition()

void Dragengine.Scenery.ARAnimationSelect.setEnablePosition ( bool enabled)

Enable position modification.

References setEnablePosition().

Referenced by setEnablePosition().

◆ setEnableSize()

void Dragengine.Scenery.ARAnimationSelect.setEnableSize ( bool enabled)

Enable size modification.

References setEnableSize().

Referenced by setEnableSize().

◆ setEnableVertexPositionSet()

void Dragengine.Scenery.ARAnimationSelect.setEnableVertexPositionSet ( bool enabled)

Enable vertex position set modification.

Version
1.17

References setEnableVertexPositionSet().

Referenced by setEnableVertexPositionSet().

◆ targetAddLink()

void Dragengine.Scenery.ARAnimationSelect.targetAddLink ( ARAnimationSelectTarget target,
int link )

Add link to target.

Exceptions
EInvalidParamtarget is not a valid value.

References removeAllMoves().

Referenced by targetRemoveAllLinks().

◆ targetRemoveAllLinks()

void Dragengine.Scenery.ARAnimationSelect.targetRemoveAllLinks ( ARAnimationSelectTarget target)

Remove all links from target.

Exceptions
EInvalidParamtarget is not a valid value.

References targetAddLink(), and targetRemoveAllLinks().

Referenced by targetRemoveAllLinks().


The documentation for this class was generated from the following file: