njFastActionLink Japanese
<-|INDEX|->
Links motions.

FORMAT

#include <Ninja.h>
void  njFastActionLink( actionlink, frame )
NJS_ACTION_LINK  *actionlink
Float            frame

PARAMETERS

actionlink
Pointer to action link structure
frame
Frame number (from 0 to 1)

RETURN VALUE

None

ERROR VALUE

None

FUNCTION


EXAMPLE

#include <NINJA.H> 

#define  OBJECT    object_sample
#define  MOTION1    motion_sample1 /* described in nam */
#define  MOTION2    motion_sample2 /* described in nam */
#define  STEPS    60

extern NJS_MOTION  MOTION1[];
extern NJS_MOTION  MOTION2[];

NJS_MOTION_LINK  motionlink;
NJS_ACTION_LINK  actionlink;

...........
actionlink.motionlink = &motionlink;
actionlink.object = OBJECT;
motionlink.motion[0] = MOTION1;/* link source */
motionlink.motion[1] = MOTION2;/* link destination */
/* interpolate 1.5 frames of MOTION2 from the final frame of MOTION1 */
motionlink.frame[0] = MOTION1->nbFrame-1;
motionlink.frame[1] = 1.5;

...........
njFastActionLink( &actionlink, ff/STEPS ); /* Specify from 0 - 1 for frames */

ff+=0.2f;
if( ff >= STEPS - 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
njActionLink()
njDrawMotionLink()
njFastDrawMotionLink()

njFastActionLink
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997