Changeset 10086 in orxonox.OLD for branches/playability/src/world_entities
- Timestamp:
- Dec 17, 2006, 7:43:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.