Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3750 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Apr 7, 2005, 7:37:25 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: made some sattelite object just for fun and to show on the convention tomarrow

Location:
orxonox/trunk/src/world_entities
Files:
2 added
2 edited

Legend:

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

    r3686 r3750  
    4646  */
    4747  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
     48  //this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN);
    4849  travelSpeed = 15.0;
    4950  velocity = new Vector();
     
    147148  this->model->draw();
    148149  glPopMatrix();
     150
     151  this->activeWeapon->draw();
    149152}
    150153
  • orxonox/trunk/src/world_entities/test_gun.cc

    r3710 r3750  
    4242  :  Weapon (parent, coordinate, direction)
    4343{
     44  this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN);
    4445  this->idleTime = 0.2f;
    4546}
     
    146147*/
    147148void TestGun::draw ()
    148 {}
     149{
     150  glMatrixMode(GL_MODELVIEW);
     151  glPushMatrix();
     152  float matrix[4][4];
     153 
     154  /* translate */
     155  glTranslatef (this->getAbsCoor ().x,
     156                this->getAbsCoor ().y,
     157                this->getAbsCoor ().z);
     158  /* rotate */
     159  this->getAbsDir ().matrix (matrix);
     160  glMultMatrixf((float*)matrix);
     161 
     162  this->model->draw(2);
     163  glPopMatrix();
     164}
    149165
Note: See TracChangeset for help on using the changeset viewer.