Changeset 8333 for code/branches/kicklib2/src/orxonox/graphics
- Timestamp:
- Apr 26, 2011, 4:46:26 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2/src/orxonox/graphics/BlinkingBillboard.cc
r8332 r8333 81 81 // Wrap around to avoid loosing floating point precision 82 82 this->time_ = std::fmod(this->time_ + dt, 1.0f / this->frequency_); 83 float value = sin(( 2.0f * math::pi * this->time_ + this->phase_.valueRadians()) * this->frequency_);83 float value = sin((math::twoPi * this->time_ + this->phase_.valueRadians()) * this->frequency_); 84 84 if (this->bQuadratic_) 85 85 this->setScale(this->amplitude_ * square(value));
Note: See TracChangeset
for help on using the changeset viewer.