Changeset 10188 in orxonox.OLD for branches/playability/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Jan 7, 2007, 2:50:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10168 r10188 268 268 269 269 this->angle += this->rotationSpeed * time; 270 while (this->angle > 360) 271 this->angle -= 360; 270 272 271 273 this->lastDir = this->curDir; … … 309 311 glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z); 310 312 Vector tmpRot = this->getAbsCoor().cross(tmpDir); 311 glRotatef (angle Deg( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z );313 glRotatef (angleRad ( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z ); 312 314 glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile 313 315 this->getAbsDir().matrix (matrix);
Note: See TracChangeset
for help on using the changeset viewer.