Drag[en]gine Script Module DragonScript
1.23
|
Animator rule animation select. More...
Public Member Functions | |
Constructors | |
ARAnimationSelect | new () |
Create animator rule. More... | |
Management | |
void | setEnablePosition (bool enabled) |
Enable position modification. More... | |
void | setEnableOrientation (bool enabled) |
Enable orientation modification. More... | |
void | setEnableSize (bool enabled) |
Enable size modification. More... | |
void | setEnableVertexPositionSet (bool enabled) |
Enable vertex position set modification. More... | |
int | getMoveCount () |
Number of moves. More... | |
String | getMoveAt (int index) |
Move at index. More... | |
void | addMove (String moveName) |
Add move. More... | |
void | removeAllMoves () |
Remove all move. More... | |
void | targetAddLink (ARAnimationSelectTarget target, int link) |
Add link to target. More... | |
void | targetRemoveAllLinks (ARAnimationSelectTarget target) |
Remove all links from target. More... | |
Public Member Functions inherited from Dragengine.Scenery.AnimatorRule | |
void | setEnabled (bool enabled) |
Set if rule is enabled. More... | |
void | setBlendMode (AnimatorRuleBlendMode blendMode) |
Set blend mode. More... | |
void | setBlendFactor (float blendFactor) |
Set blend factor clamped to the range from 0 to 1. More... | |
void | setInvertBlendFactor (bool invertBlendFactor) |
Invert blend factor (1 - blendFactor). More... | |
void | addBone (String bone) |
Add bone. More... | |
void | removeAllBones () |
Remove all bones. More... | |
void | copyBonesFrom (AnimatorRule rule) |
Copy all bones from another rule. More... | |
void | addVertexPositionSet (String vertexPositionSet) |
Add vertex position set. More... | |
void | removeAllVertexPositionSets () |
Remove all vertex position sets. More... | |
void | copyVertexPositionSetsFrom (AnimatorRule rule) |
Copy all vertex position sets from another rule. More... | |
Additional Inherited Members | |
Constructors |
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.
void Dragengine.Scenery.ARAnimationSelect.addMove | ( | String | moveName | ) |
Add move.
String Dragengine.Scenery.ARAnimationSelect.getMoveAt | ( | int | index | ) |
Move at index.
int Dragengine.Scenery.ARAnimationSelect.getMoveCount | ( | ) |
Number of moves.
ARAnimationSelect Dragengine.Scenery.ARAnimationSelect.new | ( | ) |
Create animator rule.
Reimplemented from Dragengine.Scenery.AnimatorRule.
void Dragengine.Scenery.ARAnimationSelect.removeAllMoves | ( | ) |
Remove all move.
void Dragengine.Scenery.ARAnimationSelect.setEnableOrientation | ( | bool | enabled | ) |
Enable orientation modification.
void Dragengine.Scenery.ARAnimationSelect.setEnablePosition | ( | bool | enabled | ) |
Enable position modification.
void Dragengine.Scenery.ARAnimationSelect.setEnableSize | ( | bool | enabled | ) |
Enable size modification.
void Dragengine.Scenery.ARAnimationSelect.setEnableVertexPositionSet | ( | bool | enabled | ) |
Enable vertex position set modification.
void Dragengine.Scenery.ARAnimationSelect.targetAddLink | ( | ARAnimationSelectTarget | target, |
int | link | ||
) |
Add link to target.
EInvalidParam | target is not a valid value. |
void Dragengine.Scenery.ARAnimationSelect.targetRemoveAllLinks | ( | ARAnimationSelectTarget | target | ) |
Remove all links from target.
EInvalidParam | target is not a valid value. |