Changeset 10086 in orxonox.OLD for branches/playability
- Timestamp:
- Dec 17, 2006, 7:43:39 PM (18 years ago)
- Location:
- branches/playability
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/ChangeLog
r10082 r10086 1 2006-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 1 5 2006-12-16 Marc Schärer <marcscha@ee.ethz.ch> 2 6 Addition trail system -
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10081 r10086 112 112 this->maxVelocity = 300; 113 113 114 this->rotationSpeed = 100;114 this->rotationSpeed = 360; 115 115 this->angle = 0; 116 116 } … … 269 269 float matrix[4][4]; 270 270 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 ); 271 273 glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile 272 274 this->getAbsDir().matrix (matrix);
Note: See TracChangeset
for help on using the changeset viewer.