Previous Up Next

M3applyAnimKey2F
Calculates the animation for the '_top_' sub-tree, at the frame interpolated between the two (floating-point) frames given as parameters.
The interpolation coefficient is expressed as a floating-point value (0.0 to 1.0).
The animation is calculated based on the animation node descendant provided as a parameter.

I M3applyAnimKey2F (
S3d _session_
H3d _anim0_
H3d _anim1_
H3d _top_
F _frame0_
F _frame1_
F _rate_
I _flag_
)
Parameters

_session_
3D Session
_anim0_
Animation 0
_anim1_
Animation 1
_top_
Tree top to be animated
_frame0_
Animation frame #0
_frame1_
Animation frame #1
_rate_
Interpolation rate
_flag_
The '_flag_' parameter is composed of the following flags :
ANIM_POS animation of positions
ANIM_ANG animation of rotations
ANIM_TOP also applies to the animation of the '_top_' node
Return value

0 if successful, otherwise nil