![]() |
Resonance Game
Team Walterio Fuchsbauer
|
The animation player is in charge of decoding bone position matrices from an animation clip. More...
Public Member Functions | |
AnimationPlayer (SkinningData skinningData) | |
Constructs a new animation player. | |
void | StartClip (AnimationClip clip) |
Starts decoding the specified animation clip. | |
void | Update (TimeSpan time, bool relativeToCurrentTime, Matrix rootTransform) |
Advances the current animation position. | |
void | UpdateBoneTransforms (TimeSpan time, bool relativeToCurrentTime) |
Helper used by the Update method to refresh the BoneTransforms data. | |
void | UpdateWorldTransforms (Matrix rootTransform) |
Helper used by the Update method to refresh the WorldTransforms data. | |
void | UpdateSkinTransforms () |
Helper used by the Update method to refresh the SkinTransforms data. | |
Matrix[] | GetBoneTransforms () |
Gets the current bone transform matrices, relative to their parent bones. | |
Matrix[] | GetWorldTransforms () |
Gets the current bone transform matrices, in absolute format. | |
Matrix[] | GetSkinTransforms () |
Gets the current bone transform matrices, relative to the skinning bind pose. | |
Properties | |
AnimationClip | CurrentClip [get] |
Gets the clip currently being decoded. | |
TimeSpan | CurrentTime [get] |
Gets the current play position. |
The animation player is in charge of decoding bone position matrices from an animation clip.
AnimationLibrary.AnimationPlayer.AnimationPlayer | ( | SkinningData | skinningData | ) |
Constructs a new animation player.
Matrix [] AnimationLibrary.AnimationPlayer.GetBoneTransforms | ( | ) |
Gets the current bone transform matrices, relative to their parent bones.
Matrix [] AnimationLibrary.AnimationPlayer.GetSkinTransforms | ( | ) |
Gets the current bone transform matrices, relative to the skinning bind pose.
Matrix [] AnimationLibrary.AnimationPlayer.GetWorldTransforms | ( | ) |
Gets the current bone transform matrices, in absolute format.
void AnimationLibrary.AnimationPlayer.StartClip | ( | AnimationClip | clip | ) |
Starts decoding the specified animation clip.
void AnimationLibrary.AnimationPlayer.Update | ( | TimeSpan | time, |
bool | relativeToCurrentTime, | ||
Matrix | rootTransform | ||
) |
Advances the current animation position.
void AnimationLibrary.AnimationPlayer.UpdateBoneTransforms | ( | TimeSpan | time, |
bool | relativeToCurrentTime | ||
) |
Helper used by the Update method to refresh the BoneTransforms data.
Helper used by the Update method to refresh the SkinTransforms data.
void AnimationLibrary.AnimationPlayer.UpdateWorldTransforms | ( | Matrix | rootTransform | ) |
Helper used by the Update method to refresh the WorldTransforms data.
Gets the clip currently being decoded.
TimeSpan AnimationLibrary.AnimationPlayer.CurrentTime [get] |
Gets the current play position.