Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6136


Ignore:
Timestamp:
Nov 24, 2009, 2:35:24 AM (15 years ago)
Author:
landauf
Message:

BlinkingBillboard now blinks properly also with ogre 1.6 (which doesn't like negative scales anymore)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/graphics/BlinkingBillboard.cc

    r5781 r6136  
    8181                this->setScale(this->amplitude_ * static_cast<float>(square(sin((6.2831853 * this->time_ + this->phase_.valueRadians()) * this->frequency_))));
    8282            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_))));
    8484        }
    8585    }
Note: See TracChangeset for help on using the changeset viewer.