Class NodeAnimationUpdater
- Namespace
- HelixToolkit.SharpDX.Animations
- Assembly
- HelixToolkit.SharpDX.dll
public class NodeAnimationUpdater : IAnimationUpdater
- Inheritance
-
NodeAnimationUpdater
- Implements
- Inherited Members
Constructors
NodeAnimationUpdater(Animation)
public NodeAnimationUpdater(Animation animation)
Parameters
animationAnimation
Properties
Animation
public Animation Animation { get; }
Property Value
EndTime
End time for the animation.
public float EndTime { get; }
Property Value
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
- string
The name.
NodeCollection
public IList<NodeAnimation> NodeCollection { get; }
Property Value
RepeatMode
Gets or sets the repeat mode.
public AnimationRepeatMode RepeatMode { get; set; }
Property Value
- AnimationRepeatMode
The repeat mode.
StartTime
Start time for the animation, usually it is 0.
public float StartTime { get; }
Property Value
Methods
OnGetNewBoneMatrices(int)
Called when [get new bone matrices]. Override this to provide your own matices pool to avoid small object creation
protected virtual Matrix4x4[] OnGetNewBoneMatrices(int count)
Parameters
countintThe count.
Returns
OnReturnOldBoneMatrices(Matrix4x4[]?)
Called when [return old bone matrices]. Override this to return the old matrix array back to your own matices pool. OnGetNewBoneMatrices(int)
protected virtual void OnReturnOldBoneMatrices(Matrix4x4[]? m)
Parameters
mMatrix4x4[]The m.
Reset()
Resets this animation.
public void Reset()
Update(float, long)
Updates the animation with a time stamp.
public void Update(float timeStamp, long frequency)