C# Class XNAnimation.Controllers.AnimationController

Controls how animations are played and interpolated.
Inheritance: IAnimationController, IBlendable
Afficher le fichier Open project: denniskb/asvo Class Usage Examples

Méthodes publiques

Méthode Description
AnimationController ( SkinnedModelBoneCollection skeleton ) : System

Initializes a new instance of the T:XNAnimation.Controllers.AnimationController class.

CrossFade ( AnimationClip animationClip, System.TimeSpan fadeTime ) : void
CrossFade ( AnimationClip animationClip, System.TimeSpan fadeTime, InterpolationMode translationInterpolation, InterpolationMode orientationInterpolation, InterpolationMode scaleInterpolation ) : void
GetBoneAbsoluteTransform ( int boneId ) : Matrix
GetBoneAbsoluteTransform ( string boneName ) : Matrix
PlayClip ( AnimationClip animationClip ) : void
SetBoneController ( int bone, Microsoft.Xna.Framework.Quaternion angles ) : void
SetBoneController ( string boneName, Microsoft.Xna.Framework.Quaternion angles ) : void
StartClip ( AnimationClip animationClip ) : void
Update ( System.TimeSpan elapsedTime, Matrix parent ) : void

Private Methods

Méthode Description
InterpolateChannelPose ( AnimationChannel animationChannel, System.TimeSpan animationTime, Pose &outPose ) : void

Retrieves and interpolates the pose of an animation channel.

UpdateAbsoluteBoneTransforms ( Matrix &parent ) : void

Calculates the final configuration of all skeleton's bones used to transform the model's mesh.

UpdateAnimationTime ( System.TimeSpan elapsedTime ) : void

Updates the animation clip time.

UpdateChannelPoses ( ) : void

Updates the pose of all skeleton's bones.

UpdateCrossFadeTime ( System.TimeSpan elapsedTime ) : void

Updates the CrossFade time

Method Details

AnimationController() public méthode

Initializes a new instance of the T:XNAnimation.Controllers.AnimationController class.
public AnimationController ( SkinnedModelBoneCollection skeleton ) : System
skeleton SkinnedModelBoneCollection The skeleton of the model to be animated
Résultat System

CrossFade() public méthode

public CrossFade ( AnimationClip animationClip, System.TimeSpan fadeTime ) : void
animationClip AnimationClip
fadeTime System.TimeSpan
Résultat void

CrossFade() public méthode

public CrossFade ( AnimationClip animationClip, System.TimeSpan fadeTime, InterpolationMode translationInterpolation, InterpolationMode orientationInterpolation, InterpolationMode scaleInterpolation ) : void
animationClip AnimationClip
fadeTime System.TimeSpan
translationInterpolation InterpolationMode
orientationInterpolation InterpolationMode
scaleInterpolation InterpolationMode
Résultat void

GetBoneAbsoluteTransform() public méthode

public GetBoneAbsoluteTransform ( int boneId ) : Matrix
boneId int
Résultat Matrix

GetBoneAbsoluteTransform() public méthode

public GetBoneAbsoluteTransform ( string boneName ) : Matrix
boneName string
Résultat Matrix

PlayClip() public méthode

public PlayClip ( AnimationClip animationClip ) : void
animationClip AnimationClip
Résultat void

SetBoneController() public méthode

public SetBoneController ( int bone, Microsoft.Xna.Framework.Quaternion angles ) : void
bone int
angles Microsoft.Xna.Framework.Quaternion
Résultat void

SetBoneController() public méthode

public SetBoneController ( string boneName, Microsoft.Xna.Framework.Quaternion angles ) : void
boneName string
angles Microsoft.Xna.Framework.Quaternion
Résultat void

StartClip() public méthode

public StartClip ( AnimationClip animationClip ) : void
animationClip AnimationClip
Résultat void

Update() public méthode

public Update ( System.TimeSpan elapsedTime, Matrix parent ) : void
elapsedTime System.TimeSpan
parent Matrix
Résultat void