espresso3d.engine.world.sector.actor.skeleton.animation
Class E3DAnimation
java.lang.Object
espresso3d.engine.base.E3DEngineItem
espresso3d.engine.world.sector.actor.skeleton.animation.E3DAnimation
- public class E3DAnimation
- extends E3DEngineItem
- Author:
- Curt
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
E3DAnimation
public E3DAnimation(E3DEngine engine,
java.lang.String animationID)
E3DAnimation
public E3DAnimation(E3DAnimation toCopyAnimation)
addKeyFrame
public void addKeyFrame(E3DAnimationKeyFrame keyFrame)
- Add a keyframe to the animation. The order the keyframes are animated will be the same order they
are added to the animation
- Parameters:
keyFrame -
removeKeyFrame
public void removeKeyFrame(E3DAnimationKeyFrame keyFrame)
removeKeyFrame
public void removeKeyFrame(java.lang.String keyFrameID)
getKeyFrame
public E3DAnimationKeyFrame getKeyFrame(java.lang.String keyFrameID)
reset
public void reset()
update
public void update(double lastFrameTimeSeconds)
getAnimationID
public java.lang.String getAnimationID()
rotate
public void rotate(double angle,
E3DVector3F aroundVec)
- This will rotate all the keyframes' commands along with the actor so animation will stay oriented with the actor
This is normally called only internally by the engine (Actor as it rotates)
- Parameters:
angle - aroundVec -
getSkeleton
public E3DSkeleton getSkeleton()
setSkeleton
public void setSkeleton(E3DSkeleton skeleton)
getCurrentKeyFrame
public E3DAnimationKeyFrame getCurrentKeyFrame()
getKeyFrames
public java.util.HashMap getKeyFrames()
getOrderedKeyFrames
public java.util.ArrayList getOrderedKeyFrames()
getCurrentKeyFrameNum
public int getCurrentKeyFrameNum()