*action | Pointer to the action structure |
Float | Frame number |
Floating point can be used for frame number, so it can supplement motion data. The range for frame number is 0 thru less than 10 (9.9999) when the frame number of a motion is 10.
For example, suppose the frame number is 0.5. It will supplement the values between 0th frame and 1st frame and draw. Supplements for 9 thru less than 10(9.9999) would be performed between the last frame and the first frame.
#define ACTION action_sample extern NJS_ACTION ACTION[]; : njAction( ACTION,ff ); ff+=0.2f; if( ff >= (ACTION->motion->nbFrame) ) ff-=ACTION->motion->nbFrame; :