Table of Contents

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

animation Animation

Properties

Animation

public Animation Animation { get; }

Property Value

Animation

EndTime

End time for the animation.

public float EndTime { get; }

Property Value

float

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

string

The name.

NodeCollection

public IList<NodeAnimation> NodeCollection { get; }

Property Value

IList<NodeAnimation>

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

float

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

count int

The count.

Returns

Matrix4x4[]

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

m Matrix4x4[]

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)

Parameters

timeStamp float

The time stamp.

frequency long

The frequency. If time stamp is second based, frequency is 1.