njFastDrawMotion | Japanese
    <-|INDEX|->
Executes motion.

### FORMAT

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

### PARAMETERS

object
  pointer to object structure
motion
  pointer to motion structure
frame
  frame number

### RETURN VALUE

  None

### ERORR VALUE

  None

### FUNCTION

- Draws motion on the basis of motion data. As floating-point can be used for a frame number, motion data can be interpolated.
- In case of a motion with 10 frames, the range of a frame number is from 0 to less than 10(9.9999).
- For example, when the frame number is 0.5, interpolates the value of the just middle of the 0th frame and the 1st frame and draws.
- Interpolation from 0 to less than 10(9.9999) means interpolation of the last and first frames.

### 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

  The only difference with njAction() is that action structure is devided into object and motion. Except for it, others are entirely same as ones of njAction(). As it corresponds to njFastDrawObject in model functions, the light source becomes luminance light.

### RELATED TOPICS

  njFastAction()
  njAction()
  njDrawMotion()

njFastDrawMotion |
    <-|INDEX|->