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

### FORMAT

      #include <Ninja.h>
      void  njFastAction( *action, frame )
      NJS_ACTION  *action
      Float       frame

### PARAMETERS

action
  pointer for the action structure
frame
  frame number

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

  - This function draws an object structure with motion form the action structure.
  - 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  ACTION    action_sample /* described in nam */
      extern NJS_ACTION  ACTION[];

      ...........
      njFastAction( ACTION,ff );

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

### NOTES

  The drawing performed by this function is identical to model drawing, except that motion has been added. In other words, all of the njControl3D settings are identical. This function corresponds to the model drawing function njFastDrawObject, so the light source is bright light.

### RELATED TOPICS

  Related Items
  njFastDrawMotion()
  njAction()
  njDrawMotion()

njFastAction |
    <-|INDEX|->