Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 28, 2006, 5:46:39 PM (18 years ago)
Author:
patrick
Message:

altering md2 model for dynamic animations choosement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/lib/graphics/importer/md2/md2Model.cc

    r8490 r8878  
    103103  this->pModelInfo.pTexCoor = (float*)this->data->pTexCoor;
    104104
     105  this->animationSpeed = 1.0f;
     106
    105107  // triangle conversion
    106108  this->pModelInfo.pTriangles = new sTriangleExt[this->data->numTriangles];
     
    196198void MD2Model::tick(float time)
    197199{
    198   this->animate(time);
     200  this->animate(time * this->animationSpeed);
    199201  this->processLighting();
    200202  this->interpolate(/*this->verticesList*/);
Note: See TracChangeset for help on using the changeset viewer.