Drag[en]gine Script Module DragonScript
1.21
|
Definition of animator rule. More...
Public Member Functions | |
void | addBone (String bone) |
Add bone. More... | |
void | addTargetLink (ADRuleTargetLink targetLink) |
Add target link. More... | |
void | addVertexPositionSet (String vertexPositionSet) |
Add vertex position set. More... | |
AnimatorRule | buildRule (Animator animator) |
Build engine animator rule using the stored definition. More... | |
void | forEachTarget (Block ablock) |
Visit target links with a block. More... | |
float | getBlendFactor () |
Blend factor. More... | |
AnimatorRuleBlendMode | getBlendMode () |
Blend mode. More... | |
String | getBoneAt (int index) |
Bone at index. More... | |
int | getBoneCount () |
Count of bones. More... | |
bool | getEnabled () |
Rule is enabled. More... | |
bool | getInvertBlendFactor () |
Invert blend factor (1 - blendFactor). More... | |
ADRuleTargetLink | getTargetLinkAt (int index) |
Target link at index. More... | |
int | getTargetLinkCount () |
Count of target links. More... | |
String | getVertexPositionSetAt (int index) |
Vertex position set at index. More... | |
int | getVertexPositionSetCount () |
Count of vertex position sets. More... | |
ADRule | new () |
Create animation rule definition. More... | |
void | removeAllTargetLinks () |
Remove all target links. More... | |
void | setBlendFactor (float factor) |
Set blend factor. More... | |
void | setBlendMode (AnimatorRuleBlendMode mode) |
Set blend mode. More... | |
void | setEnabled (bool enabled) |
Set if rule is enabled. More... | |
void | setInvertBlendFactor (bool invertBlendFactor) |
Set invert blend factor (1 - blendFactor). More... | |
void | setName (String name) |
Set name of rule. More... | |
Protected Member Functions | |
String | debugCommon (String type) |
ADRule | new (AnimatorDefinition fromDef, AnimatorDefinition toDef, ADRule rule) |
Create copy of animation rule definition. More... | |
Definition of animator rule.
Once defined a rule can be added to an animator using the stored definition. This is the base rule class with the properties shared amongst all rule types.
void Dragengine.Animators.ADRule.addBone | ( | String | bone | ) |
Add bone.
void Dragengine.Animators.ADRule.addTargetLink | ( | ADRuleTargetLink | targetLink | ) |
Add target link.
void Dragengine.Animators.ADRule.addVertexPositionSet | ( | String | vertexPositionSet | ) |
Add vertex position set.
AnimatorRule Dragengine.Animators.ADRule.buildRule | ( | Animator | animator | ) |
Build engine animator rule using the stored definition.
Reimplemented in Dragengine.Animators.ADRuleTrackTo, Dragengine.Animators.ADRuleSubAnimator, Dragengine.Animators.ADRuleStateSnapshot, Dragengine.Animators.ADRuleStateManipulator, Dragengine.Animators.ADRuleMirror, Dragengine.Animators.ADRuleLimit, Dragengine.Animators.ADRuleInverseKinematic, Dragengine.Animators.ADRuleGroup, Dragengine.Animators.ADRuleForeignState, Dragengine.Animators.ADRuleBoneTransformator, Dragengine.Animators.ADRuleAnimationSelect, Dragengine.Animators.ADRuleAnimationDifference, and Dragengine.Animators.ADRuleAnimation.
|
protected |
void Dragengine.Animators.ADRule.forEachTarget | ( | Block | ablock | ) |
Visit target links with a block.
float Dragengine.Animators.ADRule.getBlendFactor | ( | ) |
Blend factor.
AnimatorRuleBlendMode Dragengine.Animators.ADRule.getBlendMode | ( | ) |
Blend mode.
String Dragengine.Animators.ADRule.getBoneAt | ( | int | index | ) |
Bone at index.
int Dragengine.Animators.ADRule.getBoneCount | ( | ) |
Count of bones.
bool Dragengine.Animators.ADRule.getEnabled | ( | ) |
Rule is enabled.
bool Dragengine.Animators.ADRule.getInvertBlendFactor | ( | ) |
Invert blend factor (1 - blendFactor).
ADRuleTargetLink Dragengine.Animators.ADRule.getTargetLinkAt | ( | int | index | ) |
Target link at index.
int Dragengine.Animators.ADRule.getTargetLinkCount | ( | ) |
Count of target links.
String Dragengine.Animators.ADRule.getVertexPositionSetAt | ( | int | index | ) |
Vertex position set at index.
int Dragengine.Animators.ADRule.getVertexPositionSetCount | ( | ) |
Count of vertex position sets.
ADRule Dragengine.Animators.ADRule.new | ( | ) |
Create animation rule definition.
Reimplemented in Dragengine.Animators.ADRuleTrackTo, Dragengine.Animators.ADRuleSubAnimator, Dragengine.Animators.ADRuleStateSnapshot, Dragengine.Animators.ADRuleStateManipulator, Dragengine.Animators.ADRuleMirror, Dragengine.Animators.ADRuleLimit, Dragengine.Animators.ADRuleInverseKinematic, Dragengine.Animators.ADRuleGroup, Dragengine.Animators.ADRuleForeignState, Dragengine.Animators.ADRuleBoneTransformator, Dragengine.Animators.ADRuleAnimationSelect, Dragengine.Animators.ADRuleAnimationDifference, and Dragengine.Animators.ADRuleAnimation.
|
protected |
Create copy of animation rule definition.
void Dragengine.Animators.ADRule.removeAllTargetLinks | ( | ) |
Remove all target links.
void Dragengine.Animators.ADRule.setBlendFactor | ( | float | factor | ) |
Set blend factor.
void Dragengine.Animators.ADRule.setBlendMode | ( | AnimatorRuleBlendMode | mode | ) |
Set blend mode.
void Dragengine.Animators.ADRule.setEnabled | ( | bool | enabled | ) |
Set if rule is enabled.
void Dragengine.Animators.ADRule.setInvertBlendFactor | ( | bool | invertBlendFactor | ) |
Set invert blend factor (1 - blendFactor).
void Dragengine.Animators.ADRule.setName | ( | String | name | ) |
Set name of rule.