Changeset 5000 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/turret.cc
- Timestamp:
- Aug 13, 2005, 9:07:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/turret.cc
r4982 r5000 164 164 glMatrixMode(GL_MODELVIEW); 165 165 glPushMatrix(); 166 float matrix[4][4];167 166 glTranslatef (this->getAbsCoor ().x, 168 167 this->getAbsCoor ().y, 169 168 this->getAbsCoor ().z); 170 this->getAbsDir ().matrix (matrix);171 gl MultMatrixf((float*)matrix);169 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 170 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 172 171 173 172 this->model->draw();
Note: See TracChangeset
for help on using the changeset viewer.