Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10547 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 31, 2007, 5:47:34 AM (18 years ago)
Author:
nicolasc
Message:

fixed swarm missile direction problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/projectiles/swarm_projectile.cc

    r10545 r10547  
    265265  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    266266  Vector tmpRot = this->getAbsCoor().cross(tmpDir);
    267   glRotatef (angleRad ( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z );
     267  glRotatef (angleDeg ( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z );
    268268  glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile
    269269  this->getAbsDir().matrix (matrix);
    270270  glMultMatrixf((float*)matrix);
    271   //glScalef(2.0, 2.0, 2.0);  // no double rescale
    272271  this->getModel()->draw();
    273272  glTranslatef(-.9,0,0);
Note: See TracChangeset for help on using the changeset viewer.