Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9497 in orxonox.OLD for branches/proxy/src/world_entities


Ignore:
Timestamp:
Jul 27, 2006, 11:20:28 AM (18 years ago)
Author:
bensch
Message:

coloring for the hovers

Location:
branches/proxy/src/world_entities/space_ships
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/world_entities/space_ships/turbine_hover.cc

    r9494 r9497  
    233233}
    234234
     235
     236void TurbineHover::setBoostColor(const Color& color)
     237{
     238  this->burstSystem->setColor(0.0, color);
     239  this->burstSystem->setColor(0.2, color * 0.6);
     240  this->burstSystem->setColor(0.5, color * .3 + Color(0.5, 0.5, 0.8, 0.3));
     241  this->burstSystem->setColor(1.0, 0.8, 0.8, 0.8, 0.0);
     242}
     243
    235244void TurbineHover::setPlayDirection(const Quaternion& rot, float speed)
    236245{
  • branches/proxy/src/world_entities/space_ships/turbine_hover.h

    r8490 r9497  
    1010#include "playable.h"
    1111
     12#include "color.h"
     13
    1214// Forward Declaration
    1315class ParticleEmitter;
     
    2022    TurbineHover(const TiXmlElement* root = NULL);
    2123    virtual ~TurbineHover();
     24
     25    void setBoostColor(const Color& color);
    2226
    2327    virtual void loadParams(const TiXmlElement* root);
Note: See TracChangeset for help on using the changeset viewer.