Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7056 in orxonox.OLD


Ignore:
Timestamp:
Feb 6, 2006, 3:05:44 PM (18 years ago)
Author:
bensch
Message:

fixed the direction loading of spaceship

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

Legend:

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

    r7001 r7056  
    4646#include "state.h"
    4747#include "player.h"
     48
     49#include "load_param.h"
    4850
    4951
     
    246248{
    247249  Playable::loadParams(root);
    248 }
     250
     251  LoadParam(root, "abs-dir", this, SpaceShip, setRelDir);
     252}
     253
     254void SpaceShip::setRelDir(float angle, float axisX, float axisY, float axisZ)
     255{
     256  this->mouseDir = Quaternion(angle, Vector(axisX, axisY, axisZ));
     257}
     258
    249259
    250260
  • trunk/src/world_entities/space_ships/space_ship.h

    r7001 r7056  
    2626
    2727    virtual void loadParams(const TiXmlElement* root);
     28
     29    void setRelDir(float angle, float axisX, float axisY, float axisZ);
    2830
    2931    virtual void enter();
Note: See TracChangeset for help on using the changeset viewer.