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

Definition of bone transformator animator rule. More...

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

Public Member Functions

AnimatorRule buildRule (Animator animator)
void debug (Console console)
Vector getAxis ()
 Rotation axis.
ARBoneTransformatorCFrame getCoordinateFrame ()
 Coordinate frame of rotation.
bool getEnableOrientation ()
 Transformation affects the orientation.
bool getEnablePosition ()
 Ttransformation affects the position.
bool getEnableSize ()
 Transformation affects the size.
String getInputBone ()
 Input bone name.
ARBoneTransformatorInputSource getInputSource ()
 Input source.
float getMaximumAngle ()
 Maximum axis rotation angle.
Vector getMaximumRotation ()
 Maximum rotation.
Vector getMaximumScaling ()
 Maximum scaling.
Vector getMaximumTranslation ()
 Maximum translation.
float getMinimumAngle ()
 Minimum axis rotation angle.
Vector getMinimumRotation ()
 Minimum rotation.
Vector getMinimumScaling ()
 Minimum scaling.
Vector getMinimumTranslation ()
 Mminimum translation.
String getTargetBone ()
 Target bone name.
bool getUseAxis ()
 Use rotation axis instead of rotation directly.
ADRuleBoneTransformator new ()
 Create animation rule definition.
ADRuleBoneTransformator new (AnimatorDefinition fromDef, AnimatorDefinition toDef, ADRuleBoneTransformator rule)
 Create copy of animation rule definition.
void setAxis (Vector axis)
 Set rotation axis.
void setCoordinateFrame (ARBoneTransformatorCFrame coordFrame)
 Set if coordinate frame of rotation.
void setEnableOrientation (bool enable)
 Set if transformation affects the orientation.
void setEnablePosition (bool enable)
 Set if transformation affects the position.
void setEnableSize (bool enable)
 Set if transformation affects the size.
void setInputBone (String name)
 Set input bone name.
void setInputSource (ARBoneTransformatorInputSource source)
 Set input source.
void setMaximumAngle (float angle)
 Set maximum axis rotation angle.
void setMaximumRotation (Vector rotation)
 Set maximum rotation.
void setMaximumScaling (Vector scaling)
 Set maximum scaling.
void setMaximumTranslation (Vector translation)
 Set maximum translation.
void setMinimumAngle (float angle)
 Set minimum axis rotation angle.
void setMinimumRotation (Vector rotation)
 Set minimum rotation.
void setMinimumScaling (Vector scaling)
 Set minimum scaling.
void setMinimumTranslation (Vector translation)
 Set minimum translation.
void setTargetBone (String name)
 Set target bone name.
void setUseAxis (bool useAxis)
 Set to use rotation axis instead of rotation directly.
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.

Public Attributes

ARBoneTransformatorCFrame pCoordFrame
bool pEnablePosition
ARBoneTransformatorInputSource pInputSource
float pMinimumAngle
Vector pMinimumScaling
Vector pMinimumTranslation
String pTargetBone
bool pUseAxis

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 bone transformator animator rule.

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

Member Function Documentation

◆ buildRule()

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

Build engine animator rule using the stored definition.

Reimplemented from Dragengine.Animators.ADRule.

References getEnableSize().

Referenced by debug().

◆ debug()

◆ getAxis()

Vector Dragengine.Animators.ADRuleBoneTransformator.getAxis ( )

Rotation axis.

Version
1.6

References getMaximumRotation().

Referenced by debug().

◆ getCoordinateFrame()

ARBoneTransformatorCFrame Dragengine.Animators.ADRuleBoneTransformator.getCoordinateFrame ( )

Coordinate frame of rotation.

References setMinimumTranslation().

Referenced by getUseAxis().

◆ getEnableOrientation()

bool Dragengine.Animators.ADRuleBoneTransformator.getEnableOrientation ( )

Transformation affects the orientation.

References setMaximumTranslation().

Referenced by getInputSource().

◆ getEnablePosition()

bool Dragengine.Animators.ADRuleBoneTransformator.getEnablePosition ( )

Ttransformation affects the position.

Referenced by getInputBone().

◆ getEnableSize()

bool Dragengine.Animators.ADRuleBoneTransformator.getEnableSize ( )

Transformation affects the size.

Referenced by buildRule().

◆ getInputBone()

String Dragengine.Animators.ADRuleBoneTransformator.getInputBone ( )

Input bone name.

Version
1.28

References getEnablePosition(), and pEnablePosition.

Referenced by debug().

◆ getInputSource()

ARBoneTransformatorInputSource Dragengine.Animators.ADRuleBoneTransformator.getInputSource ( )

Input source.

Version
1.28

References getEnableOrientation().

Referenced by debug().

◆ getMaximumAngle()

float Dragengine.Animators.ADRuleBoneTransformator.getMaximumAngle ( )

Maximum axis rotation angle.

Version
1.6

References getMaximumScaling(), and pMinimumScaling.

Referenced by debug().

◆ getMaximumRotation()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMaximumRotation ( )

Maximum rotation.

References pTargetBone.

Referenced by getAxis().

◆ getMaximumScaling()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMaximumScaling ( )

Maximum scaling.

References getMinimumTranslation().

Referenced by getMaximumAngle().

◆ getMaximumTranslation()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMaximumTranslation ( )

Maximum translation.

References new().

Referenced by setEnablePosition().

◆ getMinimumAngle()

float Dragengine.Animators.ADRuleBoneTransformator.getMinimumAngle ( )

Minimum axis rotation angle.

Version
1.6

References getMinimumScaling(), and pMinimumScaling.

Referenced by debug().

◆ getMinimumRotation()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMinimumRotation ( )

Minimum rotation.

References pMinimumScaling.

Referenced by setEnableSize().

◆ getMinimumScaling()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMinimumScaling ( )

Minimum scaling.

References pInputSource, and pUseAxis.

Referenced by getMinimumAngle().

◆ getMinimumTranslation()

Vector Dragengine.Animators.ADRuleBoneTransformator.getMinimumTranslation ( )

Mminimum translation.

References pInputSource.

Referenced by getMaximumScaling().

◆ getTargetBone()

String Dragengine.Animators.ADRuleBoneTransformator.getTargetBone ( )

Target bone name.

Referenced by debug().

◆ getUseAxis()

bool Dragengine.Animators.ADRuleBoneTransformator.getUseAxis ( )

Use rotation axis instead of rotation directly.

Version
1.6

References getCoordinateFrame().

Referenced by debug().

◆ new() [1/2]

ADRuleBoneTransformator Dragengine.Animators.ADRuleBoneTransformator.new ( )

◆ new() [2/2]

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

Create copy of animation rule definition.

Version
1.13

References new(), pCoordFrame, and pTargetBone.

◆ setAxis()

void Dragengine.Animators.ADRuleBoneTransformator.setAxis ( Vector axis)

Set rotation axis.

Version
1.6

References new(), and setMaximumRotation().

Referenced by debug().

◆ setCoordinateFrame()

void Dragengine.Animators.ADRuleBoneTransformator.setCoordinateFrame ( ARBoneTransformatorCFrame coordFrame)

Set if coordinate frame of rotation.

References new(), and pMinimumTranslation.

Referenced by debug(), and setUseAxis().

◆ setEnableOrientation()

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

Set if transformation affects the orientation.

References new().

Referenced by debug(), and setInputSource().

◆ setEnablePosition()

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

Set if transformation affects the position.

References getMaximumTranslation().

Referenced by debug(), and setInputBone().

◆ setEnableSize()

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

Set if transformation affects the size.

References getMinimumRotation().

Referenced by debug().

◆ setInputBone()

void Dragengine.Animators.ADRuleBoneTransformator.setInputBone ( String name)

Set input bone name.

Version
1.28

References pEnablePosition, and setEnablePosition().

Referenced by debug().

◆ setInputSource()

void Dragengine.Animators.ADRuleBoneTransformator.setInputSource ( ARBoneTransformatorInputSource source)

Set input source.

Version
1.28

References setEnableOrientation().

Referenced by debug().

◆ setMaximumAngle()

void Dragengine.Animators.ADRuleBoneTransformator.setMaximumAngle ( float angle)

Set maximum axis rotation angle.

Version
1.6

References new(), and setMaximumScaling().

Referenced by debug().

◆ setMaximumRotation()

void Dragengine.Animators.ADRuleBoneTransformator.setMaximumRotation ( Vector rotation)

Set maximum rotation.

References pMinimumAngle.

Referenced by debug(), and setAxis().

◆ setMaximumScaling()

void Dragengine.Animators.ADRuleBoneTransformator.setMaximumScaling ( Vector scaling)

Set maximum scaling.

References pMinimumTranslation.

Referenced by debug(), and setMaximumAngle().

◆ setMaximumTranslation()

void Dragengine.Animators.ADRuleBoneTransformator.setMaximumTranslation ( Vector translation)

Set maximum translation.

References pMinimumTranslation.

Referenced by debug(), and getEnableOrientation().

◆ setMinimumAngle()

void Dragengine.Animators.ADRuleBoneTransformator.setMinimumAngle ( float angle)

Set minimum axis rotation angle.

Version
1.6

References new(), and setMinimumScaling().

Referenced by debug().

◆ setMinimumRotation()

void Dragengine.Animators.ADRuleBoneTransformator.setMinimumRotation ( Vector rotation)

Set minimum rotation.

References pCoordFrame, and pEnablePosition.

Referenced by debug(), and setTargetBone().

◆ setMinimumScaling()

void Dragengine.Animators.ADRuleBoneTransformator.setMinimumScaling ( Vector scaling)

Set minimum scaling.

Referenced by debug(), and setMinimumAngle().

◆ setMinimumTranslation()

void Dragengine.Animators.ADRuleBoneTransformator.setMinimumTranslation ( Vector translation)

Set minimum translation.

Referenced by debug(), and getCoordinateFrame().

◆ setTargetBone()

void Dragengine.Animators.ADRuleBoneTransformator.setTargetBone ( String name)

Set target bone name.

References new(), and setMinimumRotation().

Referenced by debug().

◆ setUseAxis()

void Dragengine.Animators.ADRuleBoneTransformator.setUseAxis ( bool useAxis)

Set to use rotation axis instead of rotation directly.

Version
1.6

References pCoordFrame, and setCoordinateFrame().

Referenced by debug().

Member Data Documentation

◆ pCoordFrame

ARBoneTransformatorCFrame Dragengine.Animators.ADRuleBoneTransformator.pCoordFrame

Referenced by new(), setMinimumRotation(), and setUseAxis().

◆ pEnablePosition

bool Dragengine.Animators.ADRuleBoneTransformator.pEnablePosition

◆ pInputSource

ARBoneTransformatorInputSource Dragengine.Animators.ADRuleBoneTransformator.pInputSource

◆ pMinimumAngle

float Dragengine.Animators.ADRuleBoneTransformator.pMinimumAngle

Referenced by debug(), and setMaximumRotation().

◆ pMinimumScaling

Vector Dragengine.Animators.ADRuleBoneTransformator.pMinimumScaling

◆ pMinimumTranslation

Vector Dragengine.Animators.ADRuleBoneTransformator.pMinimumTranslation

◆ pTargetBone

String Dragengine.Animators.ADRuleBoneTransformator.pTargetBone

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

◆ pUseAxis

bool Dragengine.Animators.ADRuleBoneTransformator.pUseAxis

Referenced by debug(), and getMinimumScaling().


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