njDrawShapeMotionLink | Japanese
    <-|INDEX|->
Registering motion callback routine

### FORMAT

      #include <Ninja.h>
      void    njDrawShapeMotionLink( object, motionlink, shapelink, frame )
      NJS_OBJECT       *object
      NJS_MOTION_LINK  *motionlink
      NJS_MOTION_LINK  *shapelink
      Float            frame

### PARAMETERS

### RETURN VALUE

  None

### ERORR VALUE

  None

### FUNCTION

  Two motion structure bodies are linked.
  The frame in the motion link structure body is in the motion of the frame of a link tip at the time of a link original frame, 1 when the frame of the argument is 0 with the motion frame of a/the link source and link tip, and (0 < ff < 1) augments a/the link tip and link original frame besides. It is similar regarding a peak animation.

### EXAMPLE

      #define	OBJECT		object_sample
      #define	MOTION1		motion_sample1 /* write by NAM files. */
      #define	MOTION2		motion_sample2 /* write by NAM files. */
      #define	SHAPE1		shape_sample1  /* write by NAM files. */
      #define	SHAPE2		shape_sample2  /* write by NAM files. */
      #define	STEPS		60

      extern NJS_MOTION	MOTION1[];
      extern NJS_MOTION	MOTION2[];
      extern NJS_MOTION	SHAPE1[];
      extern NJS_MOTION	SHAPE2[];

      NJS_MOTION_LINK	motionlink;
      NJS_MOTION_LINK	shapelink;

      ...........

      motionlink.motion[0] = MOTION1;
      motionlink.motion[1] = MOTION2;
      shapelink.motion[0] = SHAPE1;
      shapelink.motion[1] = SHAPE2;

      motionlink.frame[0] = shapelink.frame[0] = MOTION1->nbFrame-1;
      motionlink.frame[1] = shapelink.frame[1] = 1.5;

      ...........
      njDrawShapeMotionLink( OBJECT, &motionlink, &shapelink, ff/STEPS );

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

### NOTES

### RELATED TOPICS

njDrawShapeMotionLink |
    <-|INDEX|->