njFastDrawMotion | Japanese
    <-|INDEX|->
Draws Motion

### FORMAT

      #include <Ninja.h>
      void  njFastDrawMotion( object, motion, frame )
      NJS_OBJECT  *object
      NJS_MOTION  *motion
      Float       frame

### PARAMETERS

object
  pointer for the object structure
motion
  pointer for the motion structure
frame
  frame number

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

  - This function draws motion according to the motion data.
  - Because floating-point data can be used for frame numbers, the motion data can be interpolated.
  - In the case of a motion consisting of 10 frames, the frame numbers can range from 0 to just under 10 (i.e., 9.9999).
  - For example, if the frame number is 0.5, the values used for drawing are interpolated as exactly halfway between the values for frame 0 and the values for frame 1.
  - Interpolation from 9 to just under 10 (9.9999) becomes interpolation between the last frame and the first frame.

### EXAMPLE

      #include <NINJA.H>

      #define  OBJECT    object_sample
      #define  MOTION    motion_sample
      extern NJS_MOTION  MOTION[];
      extern NJS_OBJECT  OBJECT[];

      ...........
      njFastDrawMotion( OBJECT,MOTION,ff );

      ff+=0.2f;
      if( ff >= (MOTION->nbFrame-1) ) ff=0.f;
      ...........

### NOTES

  This function is identical to njAction(), except that the action structure has been divided into objects and motion. This function corresponds to the model drawing function njFastDrawObject, so the light source is bright light.

### RELATED TOPICS

  Related Items
  njFastAction()
  njAction()
  njDrawMotion()

njFastDrawMotion |
    <-|INDEX|->