Changeset 10645 in orxonox.OLD for branches/vs-enhencements/src/world_entities/effects
- Timestamp:
- May 2, 2007, 11:48:16 PM (18 years ago)
- 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 125 125 if (this->angle > M_2_PI) 126 126 this->angle -= M_2_PI; 127 // curMagnitude = updatePulse(this->angle); 127 128 } 128 129 … … 159 160 float tmp = 1; 160 161 if (this->bPulse) 161 tmp += this->pulseMagnitude * updatePulse(this->angle);162 tmp += this->pulseMagnitude * sinf(this->angle); //updatePulse(this->angle); 162 163 163 164 v *= sizeX * tmp; -
branches/vs-enhencements/src/world_entities/effects/billboard.h
r10635 r10645 26 26 void colorTexture(const Color col); 27 27 28 //!< Pulsing Capability, changes size of the grid 28 29 inline void togglePluse () {this->bPulse = !bPulse; }; 29 30 inline void setPulse () { this->bPulse = true; }; … … 49 50 bool bPulse; 50 51 float pulseMagnitude; 52 float curMagnitude; 51 53 float angle; 52 54 float angularSpeed;
Note: See TracChangeset
for help on using the changeset viewer.