C# 클래스 XNAnimation.Controllers.AnimationController

Controls how animations are played and interpolated.
상속: IAnimationController, IBlendable
파일 보기 프로젝트 열기: denniskb/asvo 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AnimationController() 공개 메소드

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
리턴 System

CrossFade() 공개 메소드

public CrossFade ( AnimationClip animationClip, System.TimeSpan fadeTime ) : void
animationClip AnimationClip
fadeTime System.TimeSpan
리턴 void

CrossFade() 공개 메소드

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
리턴 void

GetBoneAbsoluteTransform() 공개 메소드

public GetBoneAbsoluteTransform ( int boneId ) : Matrix
boneId int
리턴 Matrix

GetBoneAbsoluteTransform() 공개 메소드

public GetBoneAbsoluteTransform ( string boneName ) : Matrix
boneName string
리턴 Matrix

PlayClip() 공개 메소드

public PlayClip ( AnimationClip animationClip ) : void
animationClip AnimationClip
리턴 void

SetBoneController() 공개 메소드

public SetBoneController ( int bone, Microsoft.Xna.Framework.Quaternion angles ) : void
bone int
angles Microsoft.Xna.Framework.Quaternion
리턴 void

SetBoneController() 공개 메소드

public SetBoneController ( string boneName, Microsoft.Xna.Framework.Quaternion angles ) : void
boneName string
angles Microsoft.Xna.Framework.Quaternion
리턴 void

StartClip() 공개 메소드

public StartClip ( AnimationClip animationClip ) : void
animationClip AnimationClip
리턴 void

Update() 공개 메소드

public Update ( System.TimeSpan elapsedTime, Matrix parent ) : void
elapsedTime System.TimeSpan
parent Matrix
리턴 void