Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2010, 9:48:42 PM (14 years ago)
Author:
dafrick
Message:

Implemented Billboard rotation. If there is a reason why it wasn't implemented, yet and that reason is because it doesn't work, in some instances, then please feel free to revert the changes.
For me it works, though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/graphics/Billboard.h

    r7163 r7491  
    6161            inline const ColourValue& getColour() const
    6262                { return this->colour_; }
    63 /*
     63
    6464            inline void setRotation(const Radian& rotation)
    6565                { this->rotation_ = rotation; this->changedRotation(); }
    6666            inline const Radian& getRotation() const
    6767                { return this->rotation_; }
    68 */
     68
    6969            virtual void setTeamColour(const ColourValue& colour)
    7070                { this->setColour(colour); }
     
    7979            void registerVariables();
    8080            void changedMaterial();
    81 //            void changedRotation();
     81            void changedRotation();
    8282
    8383            BillboardSet billboard_;
    8484            std::string material_;
    8585            ColourValue colour_;
    86 //            Radian rotation_;
     86            Radian rotation_;
    8787    };
    8888}
Note: See TracChangeset for help on using the changeset viewer.