j3d.org Code

org.j3d.loaders.discreet
Class KeyframeRotationBlock

java.lang.Object
  extended by org.j3d.loaders.discreet.KeyframeRotationBlock

public class KeyframeRotationBlock
extends java.lang.Object

Representation of a keyframe's collection of rotational information.

A keyframe consists of

 ROTATION TRACK TAG 0xB021
     short flags
     short unknown[4]
     short keys;
     short unknown
     struct {
        short framenum
        int unknown
        float rotation in radians
        float axis_x
        float axis_y
        float axis_z
     } rotation[keys]
 
For this implementation, the unknown values are ignored and not stored.

Version:
$Revision: 1.1 $
Author:
Justin Couch

Field Summary
 int flags
          The flags associated with this rotation.
 int numKeys
          The number of valid keys to use
 RotationData[] rotations
          The sets of keyframe/value pairs
 
Constructor Summary
KeyframeRotationBlock()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flags

public int flags
The flags associated with this rotation.


numKeys

public int numKeys
The number of valid keys to use


rotations

public RotationData[] rotations
The sets of keyframe/value pairs

Constructor Detail

KeyframeRotationBlock

public KeyframeRotationBlock()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org