Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10086 in orxonox.OLD for branches/playability/src/world_entities


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

updated drawing function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.