Changeset 10635 in orxonox.OLD for branches/vs-enhencements/src/world_entities/effects
- Timestamp:
- Apr 19, 2007, 1:13:11 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
r10633 r10635 11 11 ### File Specific: 12 12 main-programmer: David Hasenfratz 13 co-programmer: Nicolas Schlumberger 13 14 */ 14 15 … … 73 74 this->bPulse = false; 74 75 75 this->angularSpeed = M_ PI; //180;76 this->angularSpeed = M_2_PI; //360; 76 77 this->angle = 0; 77 78 … … 122 123 { 123 124 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; 126 127 } 127 128 … … 158 159 float tmp = 1; 159 160 if (this->bPulse) 160 tmp = 1 +this->pulseMagnitude * updatePulse(this->angle);161 tmp += this->pulseMagnitude * updatePulse(this->angle); 161 162 162 163 v *= sizeX * tmp; -
branches/vs-enhencements/src/world_entities/effects/billboard.h
r10633 r10635 31 31 inline float getPulse () { return this->bPulse; }; 32 32 33 inline void setPulseMagnitude(float mag) {this->pulseMagnitude = mag; }; 34 33 35 virtual void tick(float dt); 34 36 virtual void draw() const;
Note: See TracChangeset
for help on using the changeset viewer.