C# Class SkinnedModel.AnimationPlayer

The animation player is in charge of decoding bone position matrices from an animation clip.
Show file Open project: zfedoran/bubblebound Class Usage Examples

Public Methods

Method Description
AnimationPlayer ( SkinnedModel.SkinningData skinningData ) : System

Constructs a new animation player.

GetBoneTransforms ( ) : Matrix[]

Gets the current bone transform matrices, relative to their parent bones.

GetSkinTransforms ( ) : Matrix[]

Gets the current bone transform matrices, relative to the skinning bind pose.

GetWorldTransforms ( ) : Matrix[]

Gets the current bone transform matrices, in absolute format.

StartClip ( SkinnedModel.AnimationClip clip ) : void

Starts decoding the specified animation clip.

Update ( System.TimeSpan time, bool relativeToCurrentTime, Matrix rootTransform ) : void

Advances the current animation position.

UpdateBoneTransforms ( System.TimeSpan time, bool relativeToCurrentTime ) : void

Helper used by the Update method to refresh the BoneTransforms data.

UpdateSkinTransforms ( ) : void

Helper used by the Update method to refresh the SkinTransforms data.

UpdateWorldTransforms ( Matrix rootTransform ) : void

Helper used by the Update method to refresh the WorldTransforms data.

Method Details

AnimationPlayer() public method

Constructs a new animation player.
public AnimationPlayer ( SkinnedModel.SkinningData skinningData ) : System
skinningData SkinnedModel.SkinningData
return System

GetBoneTransforms() public method

Gets the current bone transform matrices, relative to their parent bones.
public GetBoneTransforms ( ) : Matrix[]
return Matrix[]

GetSkinTransforms() public method

Gets the current bone transform matrices, relative to the skinning bind pose.
public GetSkinTransforms ( ) : Matrix[]
return Matrix[]

GetWorldTransforms() public method

Gets the current bone transform matrices, in absolute format.
public GetWorldTransforms ( ) : Matrix[]
return Matrix[]

StartClip() public method

Starts decoding the specified animation clip.
public StartClip ( SkinnedModel.AnimationClip clip ) : void
clip SkinnedModel.AnimationClip
return void

Update() public method

Advances the current animation position.
public Update ( System.TimeSpan time, bool relativeToCurrentTime, Matrix rootTransform ) : void
time System.TimeSpan
relativeToCurrentTime bool
rootTransform Matrix
return void

UpdateBoneTransforms() public method

Helper used by the Update method to refresh the BoneTransforms data.
public UpdateBoneTransforms ( System.TimeSpan time, bool relativeToCurrentTime ) : void
time System.TimeSpan
relativeToCurrentTime bool
return void

UpdateSkinTransforms() public method

Helper used by the Update method to refresh the SkinTransforms data.
public UpdateSkinTransforms ( ) : void
return void

UpdateWorldTransforms() public method

Helper used by the Update method to refresh the WorldTransforms data.
public UpdateWorldTransforms ( Matrix rootTransform ) : void
rootTransform Matrix
return void