Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7348 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Apr 19, 2006, 2:55:29 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new Quaternion Functionality. Also added <abs-dir> to TurbineHover

Location:
trunk/src/world_entities/space_ships
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/turbine_hover.cc

    r7346 r7348  
    220220void TurbineHover::loadParams(const TiXmlElement* root)
    221221{
    222   WorldEntity::loadParams(root);
    223 }
    224 
     222  Playable::loadParams(root);
     223}
     224
     225void TurbineHover::setPlayDirection(const Quaternion& rot, float speed)
     226{
     227  this->direction = Quaternion (rot.getHeading(), Vector(0,1,0));
     228}
    225229
    226230void TurbineHover::enter()
  • trunk/src/world_entities/space_ships/turbine_hover.h

    r7346 r7348  
    2222
    2323    virtual void loadParams(const TiXmlElement* root);
    24     virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f) {/* FIXME */};
     24    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
    2525    virtual void enter();
    2626    virtual void leave();
Note: See TracChangeset for help on using the changeset viewer.