com.jme.animation
Class Keyframe

java.lang.Object
  extended bycom.jme.animation.Keyframe

public class Keyframe
extends java.lang.Object

Keyframe defines a positional or a rotational keyframe. The keyframe defines a position a vertex should be at a given time. An animation system uses a collection of these keyframes to build a sequence of transitions to manipulate and animate a collection of vertices.

Version:
$Id: Keyframe.java,v 1.3 2004/04/22 22:26:20 renanse Exp $
Author:
Mark Powell

Field Summary
 float time
          The time in milliseconds after the start of the animation for which that keyframe occurs.
 float x
          For a position keyframe (x,y,z) are the coordinates to translate.
 float y
          For a position keyframe (x,y,z) are the coordinates to translate.
 float z
          For a position keyframe (x,y,z) are the coordinates to translate.
 
Constructor Summary
Keyframe(float time, float x, float y, float z)
          Create a keyframe at a given time and vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

public float time
The time in milliseconds after the start of the animation for which that keyframe occurs.


x

public float x
For a position keyframe (x,y,z) are the coordinates to translate. For a rotation keyframe (x,y,z) are angles, in radians, to rotate.


y

public float y
For a position keyframe (x,y,z) are the coordinates to translate. For a rotation keyframe (x,y,z) are angles, in radians, to rotate.


z

public float z
For a position keyframe (x,y,z) are the coordinates to translate. For a rotation keyframe (x,y,z) are angles, in radians, to rotate.

Constructor Detail

Keyframe

public Keyframe(float time,
                float x,
                float y,
                float z)
Create a keyframe at a given time and vector.

Parameters:
time - the time in milliseconds after the start of the animation for which that keyframe occurs.
x - the x value of the translation or rotation for the keyframe.
y - the y value of the translation or rotation for the keyframe.
z - the z value of the translation or rotation for the keyframe.