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

Definition of a mirror animator rule. More...

Inheritance diagram for Dragengine.Animators.ADRuleMirror:
Dragengine.Animators.ADRule

Classes

class  MatchBoneName
 Match bone name. More...

Public Member Functions

void addMatchName (String first, String second, ARMirrorMatchNameType type)
 Add match bone name.
AnimatorRule buildRule (Animator animator)
 Build engine animator rule using the stored definition.
bool getEnableOrientation ()
 Orientation manipulation is enabled.
bool getEnablePosition ()
 Position manipulation is enabled.
bool getEnableSize ()
 Size manipulation is enabled.
bool getEnableVertexPositionSet ()
 Vertex position set manipulation is enabled.
MatchBoneName getMatchNameAt (int index)
 Match bone name at index.
int getMatchNameCount ()
 Count of match bone names.
ARMirrorMirrorAxis getMirrorAxis ()
 Mirror axis.
String getMirrorBone ()
 Name of mirror bone or empty string to use component.
ADRuleMirror new ()
 Create animation rule definition.
ADRuleMirror new (AnimatorDefinition fromDef, AnimatorDefinition toDef, ADRuleMirror rule)
 Create copy of animation rule definition.
void setEnableOrientation (bool enable)
 Set orientation manipulation is enabled.
void setEnablePosition (bool enable)
 Set if position manipulation is enabled.
void setEnableSize (bool enable)
 Setsif size manipulation is enabled.
void setEnableVertexPositionSet (bool enable)
 Set if vertex position set manipulation is enabled.
void setMirrorAxis (ARMirrorMirrorAxis axis)
 Set mirror axis.
void setMirrorBone (String bone)
 Set name of mirror bone or empty string to use component.
Public Member Functions inherited from Dragengine.Animators.ADRule
void addBone (String bone)
 Add bone.
void addTargetLink (ADRuleTargetLink targetLink)
 Add target link.
void addVertexPositionSet (String vertexPositionSet)
 Add vertex position set.
void forEachTarget (Block ablock)
 Visit target links with a block.
float getBlendFactor ()
 Blend factor.
AnimatorRuleBlendMode getBlendMode ()
 Blend mode.
String getBoneAt (int index)
 Bone at index.
int getBoneCount ()
 Count of bones.
bool getEnabled ()
 Rule is enabled.
bool getInvertBlendFactor ()
 Invert blend factor (1 - blendFactor).
ADRuleTargetLink getTargetLinkAt (int index)
 Target link at index.
int getTargetLinkCount ()
 Count of target links.
String getVertexPositionSetAt (int index)
 Vertex position set at index.
int getVertexPositionSetCount ()
 Count of vertex position sets.
void removeAllTargetLinks ()
 Remove all target links.
void setBlendFactor (float factor)
 Set blend factor.
void setBlendMode (AnimatorRuleBlendMode mode)
 Set blend mode.
void setEnabled (bool enabled)
 Set if rule is enabled.
void setInvertBlendFactor (bool invertBlendFactor)
 Set invert blend factor (1 - blendFactor).
void setName (String name)
 Set name of rule.

Additional Inherited Members

Protected Member Functions inherited from Dragengine.Animators.ADRule
String debugCommon (String type)
ADRule new (AnimatorDefinition fromDef, AnimatorDefinition toDef, ADRule rule)
 Create copy of animation rule definition.

Detailed Description

Definition of a mirror animator rule.

Once defined a rule can be added to an animator using the stored definition.

Member Function Documentation

◆ addMatchName()

void Dragengine.Animators.ADRuleMirror.addMatchName ( String first,
String second,
ARMirrorMatchNameType type )

Add match bone name.

References new().

Referenced by buildRule().

◆ buildRule()

◆ getEnableOrientation()

bool Dragengine.Animators.ADRuleMirror.getEnableOrientation ( )

Orientation manipulation is enabled.

References new().

Referenced by buildRule().

◆ getEnablePosition()

bool Dragengine.Animators.ADRuleMirror.getEnablePosition ( )

Position manipulation is enabled.

Referenced by buildRule().

◆ getEnableSize()

bool Dragengine.Animators.ADRuleMirror.getEnableSize ( )

Size manipulation is enabled.

References new().

Referenced by buildRule().

◆ getEnableVertexPositionSet()

bool Dragengine.Animators.ADRuleMirror.getEnableVertexPositionSet ( )

Vertex position set manipulation is enabled.

Version
1.17

References getMirrorAxis().

Referenced by buildRule().

◆ getMatchNameAt()

MatchBoneName Dragengine.Animators.ADRuleMirror.getMatchNameAt ( int index)

Match bone name at index.

References new().

Referenced by buildRule().

◆ getMatchNameCount()

int Dragengine.Animators.ADRuleMirror.getMatchNameCount ( )

Count of match bone names.

Referenced by buildRule().

◆ getMirrorAxis()

ARMirrorMirrorAxis Dragengine.Animators.ADRuleMirror.getMirrorAxis ( )

Mirror axis.

Referenced by getEnableVertexPositionSet().

◆ getMirrorBone()

String Dragengine.Animators.ADRuleMirror.getMirrorBone ( )

Name of mirror bone or empty string to use component.

Referenced by buildRule().

◆ new() [1/2]

ADRuleMirror Dragengine.Animators.ADRuleMirror.new ( )

Create animation rule definition.

Reimplemented from Dragengine.Animators.ADRule.

Referenced by addMatchName(), buildRule(), getEnableOrientation(), getEnableSize(), and getMatchNameAt().

◆ new() [2/2]

ADRuleMirror Dragengine.Animators.ADRuleMirror.new ( AnimatorDefinition fromDef,
AnimatorDefinition toDef,
ADRuleMirror rule )

Create copy of animation rule definition.

Version
1.13

◆ setEnableOrientation()

void Dragengine.Animators.ADRuleMirror.setEnableOrientation ( bool enable)

Set orientation manipulation is enabled.

Referenced by buildRule().

◆ setEnablePosition()

void Dragengine.Animators.ADRuleMirror.setEnablePosition ( bool enable)

Set if position manipulation is enabled.

Referenced by buildRule().

◆ setEnableSize()

void Dragengine.Animators.ADRuleMirror.setEnableSize ( bool enable)

Setsif size manipulation is enabled.

Referenced by buildRule().

◆ setEnableVertexPositionSet()

void Dragengine.Animators.ADRuleMirror.setEnableVertexPositionSet ( bool enable)

Set if vertex position set manipulation is enabled.

Version
1.17

References setMirrorAxis().

Referenced by buildRule().

◆ setMirrorAxis()

void Dragengine.Animators.ADRuleMirror.setMirrorAxis ( ARMirrorMirrorAxis axis)

Set mirror axis.

Referenced by buildRule(), and setEnableVertexPositionSet().

◆ setMirrorBone()

void Dragengine.Animators.ADRuleMirror.setMirrorBone ( String bone)

Set name of mirror bone or empty string to use component.

Referenced by buildRule().


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