Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2007, 11:48:16 PM (18 years ago)
Author:
nicolasc
Message:

minor cleanup

Location:
branches/vs-enhencements/src/world_entities/effects
Files:
2 edited

Legend:

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

    r10635 r10645  
    125125  if (this->angle > M_2_PI)
    126126    this->angle -= M_2_PI;
     127//   curMagnitude = updatePulse(this->angle);
    127128}
    128129
     
    159160  float tmp = 1;
    160161  if (this->bPulse)
    161     tmp += this->pulseMagnitude * updatePulse(this->angle);
     162    tmp += this->pulseMagnitude * sinf(this->angle); //updatePulse(this->angle);
    162163
    163164  v *= sizeX * tmp;
  • branches/vs-enhencements/src/world_entities/effects/billboard.h

    r10635 r10645  
    2626    void colorTexture(const Color col);
    2727
     28    //!< Pulsing Capability, changes size of the grid
    2829    inline void togglePluse () {this->bPulse = !bPulse; };
    2930    inline void setPulse () { this->bPulse = true; };
     
    4950    bool bPulse;
    5051    float pulseMagnitude;
     52    float curMagnitude;
    5153    float angle;
    5254    float angularSpeed;
Note: See TracChangeset for help on using the changeset viewer.