##### Ninja Library - Model and Motion Structure

# NJS_MOTION

Structure for managing one motion data

### DEFINITION

      typedef struct {
       void *mdata;
       Uint32 nbFrame;
       Uint16 type;
       Uint16 inp_fn;
      } NJS_MOTION;

### MEMBER

  `*mdata` | NJS_MDATA pointer array
  `nbFrame` | Number of frames
  `type` | Motion type
  `inp_fn` | Number of elements and interpolation method

### DESCRIPTION

  Structure for managing one motion data. Member *mdata normally has an array for each object tree. The following shows the value taken by member "type" which indicates motion type.

  0 | NJD_MTYPE_POS_0
  1 | NJD_MTYPE_ANG_1
  2 | NJD_MTYPE_SCL_2
  3 | NJD_MTYPE_VEC_3
  4 | NJD_MTYPE_VERT_4
  5 | NJD_MTYPE_NORM_5
  6 | NJD_MTYPE_TARGET_3
  7 | NJD_MTYPE_ROLL_6
  8 | NJD_MTYPE_ANGLE_7
  9 | NJD_MTYPE_RGB_8
  10 | NJD_MTYPE_INTENSITY_9
  11 | NJD_MTYPE_SPOT_10
  12 | NJD_MTYPE_POINT_10

  Each bit of member "inp_fn" which indicates number of elements and interpolation method is as follows.

  0bit - 3bit | Number of elements
  6bit - 7bit | Interpolation method (00: linear; 01: spline)

### REFERENCE

  `njActionLink()
  njCameraMotion()
  njCnkDrawMotion()
  njCnkDrawMotionLink()
  njCnkDrawShapeMotion()
  njCnkDrawShapeMotionLink()
  njCnkEasyDrawMotion()
  njCnkEasyDrawMotionLink()
  njCnkEasyDrawShapeMotion()
  njCnkEasyDrawShapeMotionLink()
  njCnkEasyMultiDrawMotion()
  njCnkEasyMultiDrawMotionLink()
  njCnkEasyMultiDrawShapeMotion()
  njCnkEasyMultiDrawShapeMotionLink()
  njCnkGetShape()
  njCnkSetCurrentShape()
  njCnkSimpleDrawMotion()
  njCnkSimpleDrawMotionLink()
  njCnkSimpleDrawShapeMotion()
  njCnkSimpleDrawShapeMotionLink()
  njDrawMotion()
  njDrawMotionLink()
  njDrawShapeMotion()
  njDrawShapeMotionLink()
  njEasyActionLink()
  njEasyDrawMotion()
  njEasyDrawMotionLink()
  njEasyDrawShapeMotion()
  njEasyDrawShapeMotionLink()
  njFastActionLink()
  njFastDrawMotion()
  njFastDrawMotionLink()
  njFastDrawShapeMotion()
  njFastDrawShapeMotionLink()
  njGetAction()
  njGetDrawMotion()
  njGetMotionRotate()
  njGetMotionScale()
  njGetMotionTranslate()
  njInitShape()
  njLightMotion()
  njMotionRotateXYZ()
  njMotionRotateZXY()
  njMotionScale()
  njMotionTransform()
  njMotionTransformZXY()
  njMotionTranslate()
  njSetCurrentMotion()
  njSetNextMotionNode()
  njSimpleActionLink()
  njSimpleDrawMotion()
  njSimpleDrawMotionLink()
  njSimpleDrawShapeMotion()
  njSimpleDrawShapeMotionLink()
  `

NJS_MOTION

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999