Changeset 4998 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc
- Timestamp:
- Aug 13, 2005, 7:19:51 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/player.cc
r4997 r4998 222 222 glMatrixMode(GL_MODELVIEW); 223 223 glPushMatrix(); 224 float matrix[4][4];225 226 224 /* translate */ 227 225 glTranslatef (this->getAbsCoor ().x, … … 229 227 this->getAbsCoor ().z); 230 228 /* rotate */ 231 this->getAbsDir ().matrix (matrix); 232 glMultMatrixf((float*)matrix); 233 229 Vector tmpRot = this->getAbsDir().getSpacialAxis(); 230 glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z ); 234 231 this->model->draw(); 235 232 glPopMatrix();
Note: See TracChangeset
for help on using the changeset viewer.