Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10086 in orxonox.OLD


Ignore:
Timestamp:
Dec 17, 2006, 7:43:39 PM (17 years ago)
Author:
nicolasc
Message:

updated drawing function

Location:
branches/playability
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/ChangeLog

    r10082 r10086  
     12006-12-17 Nicolas Schlumberger <nicolasc@ee.ethz.ch>
     2  Added guiding sysmte for swarm missile
     3  updated drawing function, to draw in the correct direction
     4
    152006-12-16  Marc Schärer <marcscha@ee.ethz.ch>
    26  Addition trail system
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10081 r10086  
    112112  this->maxVelocity = 300;
    113113
    114   this->rotationSpeed = 100;
     114  this->rotationSpeed = 360;
    115115  this->angle = 0;
    116116}
     
    269269  float matrix[4][4];
    270270  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
     271  Vector tmpRot = this->getAbsCoor().cross(this->velocity);
     272  glRotatef (angleRad ( this->getAbsCoor(), this->velocity), tmpRot.x, tmpRot.y, tmpRot.z );
    271273  glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile
    272274  this->getAbsDir().matrix (matrix);
Note: See TracChangeset for help on using the changeset viewer.