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


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

Copyright SEGA ENTERPRISES, LTD., 1997