Changeset 6136
- Timestamp:
- Nov 24, 2009, 2:35:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/graphics/BlinkingBillboard.cc
r5781 r6136 81 81 this->setScale(this->amplitude_ * static_cast<float>(square(sin((6.2831853 * this->time_ + this->phase_.valueRadians()) * this->frequency_)))); 82 82 else 83 this->setScale(this->amplitude_ * static_cast<float>( sin((6.2831853 * this->time_ + this->phase_.valueRadians()) * this->frequency_)));83 this->setScale(this->amplitude_ * static_cast<float>(fabs(sin((6.2831853 * this->time_ + this->phase_.valueRadians()) * this->frequency_)))); 84 84 } 85 85 }
Note: See TracChangeset
for help on using the changeset viewer.