- Timestamp:
- Dec 11, 2008, 3:06:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/objects/worldentities/Backlight.cc
r2350 r2406 135 135 if (this->ribbonTrail_ && this->tickcount_ >= 2) 136 136 { 137 this->ribbonTrail_->setWidthChange(0, this->width_ * this->getWorldScale() / this->lifetime_ /* * Backlight::timeFactor_s*/);138 this->ribbonTrail_->setColourChange(0, 0, 0, 0, 1.0f / this->lifetime_ /* * Backlight::timeFactor_s*/);137 this->ribbonTrail_->setWidthChange(0, this->width_ * this->getWorldScale() / this->lifetime_ * this->getTimeFactor()); 138 this->ribbonTrail_->setColourChange(0, 0, 0, 0, 1.0f / this->lifetime_ * this->getTimeFactor()); 139 139 } 140 140 } … … 227 227 } 228 228 } 229 230 void Backlight::changedTimeFactor(float factor_new, float factor_old) 231 { 232 this->update_lifetime(); 233 } 229 234 }
Note: See TracChangeset
for help on using the changeset viewer.