Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 7, 2007, 2:50:47 PM (18 years ago)
Author:
nicolasc
Message:

updated spikeball/spike combo; still need to turn a projectile into a spaceship
swarmmissile turns again, but flickers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/swarm_projectile.cc

    r10168 r10188  
    268268
    269269  this->angle += this->rotationSpeed * time;
     270  while (this->angle > 360)
     271    this->angle -= 360;
    270272
    271273  this->lastDir = this->curDir;
     
    309311  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    310312  Vector tmpRot = this->getAbsCoor().cross(tmpDir);
    311   glRotatef (angleDeg ( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z );
     313  glRotatef (angleRad ( this->getAbsCoor(), tmpDir), tmpRot.x, tmpRot.y, tmpRot.z );
    312314  glRotatef(this->angle, 1.0f, 0.0f, 0.0f); //spinning missile
    313315  this->getAbsDir().matrix (matrix);
Note: See TracChangeset for help on using the changeset viewer.