C3DMesh::SetAnimation

Top  Previous  Next

Syntax:

 

SetAnimation(int  StartFrame, int  EndFrame, float  duration, float  timeNow)

 

Purpose:

Sets the current animation sequence for MD2 and Skinned X meshes.

 

Parameters:

StartFrame - The first frame to be displayed

EndFrame - The last frame to be displayed

duration - How long the whole animation will last, in seconds

timeNow - The current time, in seconds

 

Returned value(s):

None.

 

Application:

player.SetAnimation(10,30,5.0,timeGetTime() )

 

Class Hierarchy

C3DObject

-------C3DMesh

 

Additional Info:

For Skinned X meshes StartFrame = animation track, EndFrame is ignored.

 

See Also:

UpdateAnimation, SetNamedAnimation, SetAnimationMode