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

Definition of state snapshot animator rule. More...

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

Public Member Functions

AnimatorRule buildRule (Animator animator)
 Build engine animator rule using the stored definition.
void debug (Console console)
bool getEnableOrientation ()
 Orientation manipulation is enabled.
bool getEnablePosition ()
 Pposition manipulation is enabled.
bool getEnableSize ()
 Size manipulation is enabled.
bool getEnableVertexPositionSet ()
 Vertex position set manipulation is enabled.
int getID ()
 Identifier to snapshot state using animator instance.
bool getUseLastState ()
 Last state is used.
ADRuleStateSnapshot new ()
 Create animation rule definition.
ADRuleStateSnapshot new (AnimatorDefinition fromDef, AnimatorDefinition toDef, ADRuleStateSnapshot rule)
 Create copy of animation rule definition.
void setEnableOrientation (bool enable)
 Set if orientation manipulation is enabled.
void setEnablePosition (bool enable)
 Set if position manipulation is enabled.
void setEnableSize (bool enable)
 Set if size manipulation is enabled.
void setEnableVertexPositionSet (bool enable)
 Set if vertex position set manipulation is enabled.
void setID (int identifier)
 Set identifier to snapshot state using animator instance.
void setUseLastState (bool useLastState)
 Set if last state is used.
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 state snapshot animator rule.

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

Member Function Documentation

◆ buildRule()

AnimatorRule Dragengine.Animators.ADRuleStateSnapshot.buildRule ( Animator animator)

Build engine animator rule using the stored definition.

Reimplemented from Dragengine.Animators.ADRule.

References getEnableOrientation().

Referenced by debug().

◆ debug()

◆ getEnableOrientation()

bool Dragengine.Animators.ADRuleStateSnapshot.getEnableOrientation ( )

Orientation manipulation is enabled.

References setUseLastState().

Referenced by buildRule().

◆ getEnablePosition()

bool Dragengine.Animators.ADRuleStateSnapshot.getEnablePosition ( )

Pposition manipulation is enabled.

Referenced by getEnableVertexPositionSet().

◆ getEnableSize()

bool Dragengine.Animators.ADRuleStateSnapshot.getEnableSize ( )

Size manipulation is enabled.

References getID().

Referenced by debug().

◆ getEnableVertexPositionSet()

bool Dragengine.Animators.ADRuleStateSnapshot.getEnableVertexPositionSet ( )

Vertex position set manipulation is enabled.

Version
1.17

References getEnablePosition().

Referenced by debug().

◆ getID()

int Dragengine.Animators.ADRuleStateSnapshot.getID ( )

Identifier to snapshot state using animator instance.

Referenced by getEnableSize().

◆ getUseLastState()

bool Dragengine.Animators.ADRuleStateSnapshot.getUseLastState ( )

Last state is used.

References new().

Referenced by setEnablePosition().

◆ new() [1/2]

ADRuleStateSnapshot Dragengine.Animators.ADRuleStateSnapshot.new ( )

Create animation rule definition.

Reimplemented from Dragengine.Animators.ADRule.

References new().

Referenced by debug(), getUseLastState(), and new().

◆ new() [2/2]

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

Create copy of animation rule definition.

Version
1.13

◆ setEnableOrientation()

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

Set if orientation manipulation is enabled.

Referenced by debug().

◆ setEnablePosition()

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

Set if position manipulation is enabled.

References getUseLastState().

Referenced by debug(), and setEnableVertexPositionSet().

◆ setEnableSize()

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

Set if size manipulation is enabled.

References setID().

Referenced by debug().

◆ setEnableVertexPositionSet()

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

Set if vertex position set manipulation is enabled.

Version
1.17

References setEnablePosition().

Referenced by debug().

◆ setID()

void Dragengine.Animators.ADRuleStateSnapshot.setID ( int identifier)

Set identifier to snapshot state using animator instance.

Referenced by debug(), and setEnableSize().

◆ setUseLastState()

void Dragengine.Animators.ADRuleStateSnapshot.setUseLastState ( bool useLastState)

Set if last state is used.

Referenced by debug(), and getEnableOrientation().


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