C# Class SkinnedModel.AnimationPlayer

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

Méthodes publiques

Méthode 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 méthode

Constructs a new animation player.
public AnimationPlayer ( SkinnedModel.SkinningData skinningData ) : System
skinningData SkinnedModel.SkinningData
Résultat System

GetBoneTransforms() public méthode

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

GetSkinTransforms() public méthode

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

GetWorldTransforms() public méthode

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

StartClip() public méthode

Starts decoding the specified animation clip.
public StartClip ( SkinnedModel.AnimationClip clip ) : void
clip SkinnedModel.AnimationClip
Résultat void

Update() public méthode

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

UpdateBoneTransforms() public méthode

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

UpdateSkinTransforms() public méthode

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

UpdateWorldTransforms() public méthode

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