Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3574 in orxonox.OLD


Ignore:
Timestamp:
Mar 16, 2005, 4:21:10 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: little projectile mod - restructure of the draw functnion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/projectile.cc

    r3573 r3574  
    2929Projectile::Projectile () : WorldEntity()
    3030{
    31   this->model = new OBJModel("../data/models/fighter.obj");
     31  this->model = new OBJModel("");
    3232}
    3333
     
    3939}
    4040
    41 void Projectile::tick (float time) {}
     41void Projectile::tick (float time)
     42{}
    4243
    43 void Projectile::hit (WorldEntity* weapon, Vector loc) {}
     44void Projectile::hit (WorldEntity* weapon, Vector loc)
     45{}
    4446
    45 void Projectile::destroy () {}
     47void Projectile::destroy ()
     48{}
    4649
    47 void Projectile::collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags) {}
     50void Projectile::collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags)
     51{}
    4852
    4953void Projectile::draw ()
     
    5155  glMatrixMode(GL_MODELVIEW);
    5256  glPushMatrix();
    53   float matrix[4][4];
    54  
     57
     58  float matrix[4][4]; 
    5559  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    56   //rotate
    5760  this->getAbsDir().matrix (matrix);
    58   glMultMatrixf((float*)matrix);
    59  
     61  glMultMatrixf((float*)matrix); 
    6062  this->model->draw();
    6163
Note: See TracChangeset for help on using the changeset viewer.