espresso3d.engine.world.sector.actor.skeleton.animation
Class E3DAnimationCommand

java.lang.Object
  extended byespresso3d.engine.base.E3DEngineItem
      extended byespresso3d.engine.world.sector.actor.skeleton.animation.E3DAnimationCommand

public class E3DAnimationCommand
extends E3DEngineItem

Author:
Curt TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
E3DAnimationCommand(E3DAnimationCommand toCopyCommand)
           
E3DAnimationCommand(E3DEngine engine, java.lang.String boneGroupID, java.lang.String boneID)
           
 
Method Summary
 void executeCommand(double timeLeftToPerform, double lastFrameTimeSeconds)
          This will take a bone (and all sub bones) from where it is currently, to where it should be within timeLeftToPerform.
 E3DVector3F getBoneFinishPosition()
           
 java.lang.String getBoneGroupID()
           
 java.lang.String getBoneID()
           
 E3DAnimationKeyFrame getKeyFrame()
           
 void setKeyFrame(E3DAnimationKeyFrame keyFrame)
          The keyframe gets set automatically when added to a keyframe
 
Methods inherited from class espresso3d.engine.base.E3DEngineItem
getEngine, setEngine
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DAnimationCommand

public E3DAnimationCommand(E3DEngine engine,
                           java.lang.String boneGroupID,
                           java.lang.String boneID)

E3DAnimationCommand

public E3DAnimationCommand(E3DAnimationCommand toCopyCommand)
Method Detail

getKeyFrame

public E3DAnimationKeyFrame getKeyFrame()

setKeyFrame

public void setKeyFrame(E3DAnimationKeyFrame keyFrame)
The keyframe gets set automatically when added to a keyframe

Parameters:
keyFrame -

executeCommand

public void executeCommand(double timeLeftToPerform,
                           double lastFrameTimeSeconds)
This will take a bone (and all sub bones) from where it is currently, to where it should be within timeLeftToPerform. It will interpolate the move over the keyframe's time

Parameters:
timeLeftToPerform -
lastFrameTimeSeconds -

getBoneFinishPosition

public E3DVector3F getBoneFinishPosition()

getBoneGroupID

public java.lang.String getBoneGroupID()

getBoneID

public java.lang.String getBoneID()