libgdx API

com.badlogic.gdx.graphics.g3d.loaders.md5
Class MD5Animator

java.lang.Object
  extended by com.badlogic.gdx.graphics.g3d.Animator
      extended by com.badlogic.gdx.graphics.g3d.loaders.md5.MD5Animator

public class MD5Animator
extends Animator

An animation controller for MD5 (Doom 3) animations.

Author:
Dave Clayton

Nested Class Summary
 
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.Animator
Animator.WrapMode
 
Field Summary
protected  MD5Joints mCurrentFrame
           
protected  MD5Joints mNextFrame
           
protected  MD5Joints mSkeleton
           
 
Fields inherited from class com.badlogic.gdx.graphics.g3d.Animator
mAnimLen, mAnimPos, mCurrentAnim, mCurrentFrameIdx, mFrameDelta, mNextFrameIdx, mWrapMode
 
Constructor Summary
MD5Animator()
           
 
Method Summary
 MD5Joints getSkeleton()
          Get the current skeleton.
protected  void interpolate()
          Implementations should interpolate between the 'current' and 'next' frames of animation.
 void setAnimation(Animation anim, Animator.WrapMode wrapMode)
          Sets the currently playing Animation.
protected  void setInterpolationFrames()
          Implementations should set the 'current' and 'next' frames of animation that will be interpolated.
 void setSkeleton(MD5Joints skeleton)
          Set the current skeleton.
 
Methods inherited from class com.badlogic.gdx.graphics.g3d.Animator
getCurrentAnimation, getCurrentWrapMode, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mCurrentFrame

protected MD5Joints mCurrentFrame

mNextFrame

protected MD5Joints mNextFrame

mSkeleton

protected MD5Joints mSkeleton
Constructor Detail

MD5Animator

public MD5Animator()
Method Detail

setSkeleton

public void setSkeleton(MD5Joints skeleton)
Set the current skeleton.

Parameters:
skeleton -

getSkeleton

public MD5Joints getSkeleton()
Get the current skeleton.

Returns:
the skeleton.

setAnimation

public void setAnimation(Animation anim,
                         Animator.WrapMode wrapMode)
Description copied from class: Animator
Sets the currently playing Animation.

Overrides:
setAnimation in class Animator
Parameters:
anim - The animation to play.
wrapMode - The animation's Animator.WrapMode.

setInterpolationFrames

protected void setInterpolationFrames()
Description copied from class: Animator
Implementations should set the 'current' and 'next' frames of animation that will be interpolated.

Specified by:
setInterpolationFrames in class Animator

interpolate

protected void interpolate()
Description copied from class: Animator
Implementations should interpolate between the 'current' and 'next' frames of animation.

Specified by:
interpolate in class Animator

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)