 |
TransformationAnimation Class |
TransformationAnimation is used to animate a SceneNode by setting and animating SceneNode's transformation.
This animation can translate (move), scale and rotate the SceneNode. Rotation can be done by using Euler angles or Quaternions
(only one type of rotation can be used so you cannot mix Euler and Quaternion keyframes).
It is also possible to set a custom
PivotPoint that specifies the center of rotation and the origin of scale.
When PivotPoint is not set, the SceneNode's center position is used as a pivot point.
Inheritance Hierarchy Namespace: Ab4d.SharpEngine.AnimationAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic class TransformationAnimation : SceneNodeTargetsAnimation
The TransformationAnimation type exposes the following members.
Properties| | Name | Description |
|---|
 | ConvertOtherTransformationsToStandardTransform |
When this property is true (by default) and when IsUsingExistingStandardTransform is true,
then existing transformation (TranslateTransform, ScaleTransform and AxisAngleRotateTransform) are converted into StandardTransform.
|
 | PivotPoint |
When PivotPoint is set, then rotations and scale are done by using that pivot point.
When PivotPoint is not null (by default), then rotation and scale are done by using the object's center position as a pivot point.
|
 | ReplaceExitingTransform |
When set to true (false by default), then the animation transformation is relacing the existing Transformation on the object.
This is usually used after importing 3D objects with animations.
|
 | UseQuaternionsRotation |
Gets ors sets a Boolean value that indicates whether the rotation values are specified in Quaternions (true) or as Euler angles (false, by default).
False also indicates that no rotation is done using this animation.
When using quaternions, then the StandardQuaternionTransform is used to animate the rotation; otherwise the StandardTransform is used.
|
Top
Methods| | Name | Description |
|---|
 | AddKeyframe | |
 | AddRotateKeyframe(Single, Quaternion, FuncSingle, Single) | |
 | AddRotateKeyframe(Single, Vector3, FuncSingle, Single) | |
 | AddScaleKeyframe | |
 | AddTargetsInfoText | (Overrides SceneNodeTargetsAnimationAddTargetsInfoText(StringBuilder)) |
 | AddTranslateKeyframe | |
 | GetAnimatedPropertyName | (Overrides AnimationTGetAnimatedPropertyName(Int32)) |
 | GetStandardQuaternionTransform |
GetStandardQuaternionTransform method creates or gets the StandardQuaternionTransform from the sceneNode.
The properties of the returned StandardQuaternionTransform will be animated by this animation.
User can override this method to provide custom login on how to convert existing transformation to StandardQuaternionTransform or how to create a new StandardQuaternionTransform.
|
 | GetStandardTransform |
GetStandardTransform method creates or gets the StandardTransform from the sceneNode.
The properties of the returned StandardTransform will be animated by this animation.
User can override this method to provide custom login on how to convert existing transformation to StandardTransform or how to create a new StandardTransform.
|
 | OnInitialize | (Overrides AnimationTOnInitialize) |
 | Set(TransformationAnimatedProperties, FuncSceneNode, Int32, Int32, Single, NullableSingle, NullableSingle, FuncSingle, Single) | |
 | Set(TransformationAnimatedProperties, Single, NullableSingle, NullableSingle, FuncSingle, Single) | |
 | SetEasingFunctionToAllKeyframes(FuncSingle, Single) | (Overrides AnimationTSetEasingFunctionToAllKeyframes(FuncSingle, Single)) |
 | SetEasingFunctionToAllKeyframes(TransformationAnimatedProperties, FuncSingle, Single) |
Set the specified easing function to all key-frames belonging to the specified animated property type.
|
 | SetInitialRotate(Quaternion) | |
 | SetInitialRotate(Vector3) | |
 | SetInitialScale | |
 | SetInitialTranslate | |
 | SetInitialValue(TransformationAnimatedProperties, FuncSceneNode, Int32, Int32, Single) | |
 | SetInitialValue(TransformationAnimatedProperties, Single) | |
 | SetRotate(Quaternion, NullableSingle, NullableSingle, FuncSingle, Single) | |
 | SetRotate(Vector3, NullableSingle, NullableSingle, FuncSingle, Single) | |
 | SetScale | |
 | SetTranslate | |
Top
See Also