Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6391 in orxonox.OLD for branches/spaceshipcontrol/src


Ignore:
Timestamp:
Jan 3, 2006, 10:27:13 AM (19 years ago)
Author:
bknecht
Message:

Control: finetuning and corrections of helicopter and spaceship

Location:
branches/spaceshipcontrol/src/world_entities/space_ships
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/space_ships/helicopter.cc

    r6378 r6391  
    2727#include "key_mapper.h"
    2828#include "event_handler.h"
     29#include "state.h"
    2930
    3031#include "graphics_engine.h"
     
    175176//   this->getWeaponManager()->setSlotPosition(9, Vector(-2.5, -0.3, 2.0));
    176177//   this->getWeaponManager()->setSlotDirection(9, Quaternion(+M_PI, Vector(1,0,0)));:
     178     
     179  this->getWeaponManager()->getFixedTarget()->setParent(this);
     180  this->getWeaponManager()->getFixedTarget()->setRelCoor(100000,0,0);
     181
     182  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
    177183
    178184}
     
    194200  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    195201  this->attachCamera();
     202
    196203
    197204}
  • branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc

    r6255 r6391  
    299299
    300300  //readjust
    301  // if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0)));
     301 
     302  /*
     303    In the game "Yager" the spaceship gets readjusted when the player moves the mouse.
     304    I (bknecht) go and check it out how they do it, we could probably use this also in Orxonox.
     305  */
     306  //if (xMouse != 0 && yMouse != 0)
     307 
     308  //if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0)));
    302309  //else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0)));
    303310
  • branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.h

    r6222 r6391  
    6969    Vector                velocity;           //!< the velocity of the player.
    7070    Quaternion            mouseDir;           //!< the direction where the player wants to fly
    71     Quaternion rotQuat;
     71    Quaternion            rotQuat;
    7272    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
    7373    float                 acceleration;       //!< the acceleration of the player.
Note: See TracChangeset for help on using the changeset viewer.