C3DMesh::SetNamedAnimation |
Top Previous Next |
Syntax:
SetNamedAnimation(string name, float duration, float timeNow)
Purpose: Sets a named animation for MD2 format meshes.
Parameters: name - The name of the animation track. duration - How long the animation should take from the first frame to the last. timeNow - The current time, in seconds.
Returned value(s): None.
Application: IF(pMesh2.LoadMD2(GETSTARTPATH + "super.md2",GETSTARTPATH + "super.bmp"))
Class Hierarchy -------C3DMesh
Additional Info: The named animations available are as follows:
"stand", "run", "attack", "pain1", "pain2", "pain3", "jump", "death1", "death2" "death3", "flip", "salute", "taunt", "wave", "point", "crstand", "crwalk", "crattack" "crpain", "crdeath"
Not all MD2 meshes support all animation names. There may be additional names available provided by the author of the mesh. Setting the named animation automatically loads the start and end frames for that animation track.
MD2 animations use linear interpolation between frames to smooth animation sequences.
See Also:
|