Changeset 3750 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Apr 7, 2005, 7:37:25 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r3686 r3750 46 46 */ 47 47 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); 48 49 travelSpeed = 15.0; 49 50 velocity = new Vector(); … … 147 148 this->model->draw(); 148 149 glPopMatrix(); 150 151 this->activeWeapon->draw(); 149 152 } 150 153 -
orxonox/trunk/src/world_entities/test_gun.cc
r3710 r3750 42 42 : Weapon (parent, coordinate, direction) 43 43 { 44 this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN); 44 45 this->idleTime = 0.2f; 45 46 } … … 146 147 */ 147 148 void 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 } 149 165
Note: See TracChangeset
for help on using the changeset viewer.