Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2007, 1:13:11 PM (17 years ago)
Author:
nicolasc
Message:

pulse grid update, drawing corrections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/effects/billboard.cc

    r10633 r10635  
    1111### File Specific:
    1212   main-programmer: David Hasenfratz
     13   co-programmer: Nicolas Schlumberger
    1314*/
    1415
     
    7374  this->bPulse = false;
    7475
    75   this->angularSpeed = M_PI; //180;
     76  this->angularSpeed = M_2_PI; //360;
    7677  this->angle = 0;
    7778
     
    122123{
    123124  this->angle += dt * this->angularSpeed;
    124   if (this->angle > 2 * M_PI)
    125     this->angle -= 2 * M_PI;
     125  if (this->angle > M_2_PI)
     126    this->angle -= M_2_PI;
    126127}
    127128
     
    158159  float tmp = 1;
    159160  if (this->bPulse)
    160     tmp = 1 + this->pulseMagnitude * updatePulse(this->angle);
     161    tmp += this->pulseMagnitude * updatePulse(this->angle);
    161162
    162163  v *= sizeX * tmp;
Note: See TracChangeset for help on using the changeset viewer.