C# 클래스 SkinnedModel.AnimationPlayer

The animation player is in charge of decoding bone position matrices from an animation clip.
파일 보기 프로젝트 열기: zfedoran/bubblebound 1 사용 예제들

공개 메소드들

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

메소드 상세

AnimationPlayer() 공개 메소드

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

GetBoneTransforms() 공개 메소드

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

GetSkinTransforms() 공개 메소드

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

GetWorldTransforms() 공개 메소드

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

StartClip() 공개 메소드

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

Update() 공개 메소드

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

UpdateBoneTransforms() 공개 메소드

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

UpdateSkinTransforms() 공개 메소드

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

UpdateWorldTransforms() 공개 메소드

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