com.badlogic.gdx.graphics.g3d.loaders.md5
Class MD5Animator
java.lang.Object
com.badlogic.gdx.graphics.g3d.Animator
com.badlogic.gdx.graphics.g3d.loaders.md5.MD5Animator
public class MD5Animator
- extends Animator
An animation controller for MD5 (Doom 3) animations.
- Author:
- Dave Clayton
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mCurrentFrame
protected MD5Joints mCurrentFrame
mNextFrame
protected MD5Joints mNextFrame
mSkeleton
protected MD5Joints mSkeleton
MD5Animator
public MD5Animator()
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
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)