Changeset 3574 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 16, 2005, 4:21:10 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/projectile.cc
r3573 r3574 29 29 Projectile::Projectile () : WorldEntity() 30 30 { 31 this->model = new OBJModel(" ../data/models/fighter.obj");31 this->model = new OBJModel(""); 32 32 } 33 33 … … 39 39 } 40 40 41 void Projectile::tick (float time) {} 41 void Projectile::tick (float time) 42 {} 42 43 43 void Projectile::hit (WorldEntity* weapon, Vector loc) {} 44 void Projectile::hit (WorldEntity* weapon, Vector loc) 45 {} 44 46 45 void Projectile::destroy () {} 47 void Projectile::destroy () 48 {} 46 49 47 void Projectile::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) {} 50 void Projectile::collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags) 51 {} 48 52 49 53 void Projectile::draw () … … 51 55 glMatrixMode(GL_MODELVIEW); 52 56 glPushMatrix(); 53 float matrix[4][4]; 54 57 58 float matrix[4][4]; 55 59 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 56 //rotate57 60 this->getAbsDir().matrix (matrix); 58 glMultMatrixf((float*)matrix); 59 61 glMultMatrixf((float*)matrix); 60 62 this->model->draw(); 61 63
Note: See TracChangeset
for help on using the changeset viewer.