Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2006, 7:14:05 PM (17 years ago)
Author:
muellmic
Message:

implementing new scroller controls but still probs with camera

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.h

    r9975 r10017  
    3535    void setTravelDistance(float x, float y);
    3636
    37     void setAirFriction(float friction) { this->airFriction = friction; };
     37    //void setAirFriction(float friction) { this->airFriction = friction; };
    3838
    3939    virtual void enter();
     
    121121    int         curWeaponSecondary; //!< current secondary weapon config
    122122
    123     bool                  bUp;                //!< up button pressed.
    124     bool                  bDown;              //!< down button pressed.
     123    bool                  bForward;                //!< up button pressed.
     124    bool                  bBackward;              //!< down button pressed.
    125125    bool                  bLeft;              //!< left button pressed.
    126126    bool                  bRight;             //!< right button pressed.
     
    131131    bool                  bRollR;             //!< rolling button pressed (right)
    132132
     133    /*
    133134    float                 xMouse;             //!< mouse moved in x-Direction
    134135    float                 yMouse;             //!< mouse moved in y-Direction
     
    137138    int                   controlVelocityX;
    138139    int                   controlVelocityY;
    139 //    float                 cycle;              //!< hovercycle
     140    */
     141//   float                 cycle;              //!< hovercycle
     142
    140143
    141144    Vector                velocity;           //!< the velocity of the player.
    142     Vector                oldVelocity;        //!< the velocity the player had last synced
     145    //Vector                oldVelocity;        //!< the velocity the player had last synced
     146
     147
    143148
    144149// 2D-traveling
    145150    PNode*                travelNode;
    146151    float                 travelSpeed;        //!< the current speed of the Ship (to make soft movement)
     152    Vector2D              travelDistance;     //!< Travel-Distance away from the TravelNode
    147153
    148154// Camera
     
    150156    float                 cameraLook;
    151157    float                 rotation;
     158    float                 cameraSpeed;
    152159
    153     // FIXME until other fixme removal needed
     160    /*
    154161    Quaternion            mouseDir;           //!< the direction where the player wants to fly
    155162    Quaternion            oldMouseDir;        //!< the direction where the player wanted to fly
    156163    float                 shipInertia;        //!< the inertia of the ship(how fast the ship reacts to a mouse input)
    157 
    158164    Quaternion            rotQuat;
    159165    Quaternion            pitchDir;
    160166    float                 dogdeSpeed;        //!< the dogde Speed of the ship.
    161     // FIXME
     167    */
    162168
    163169    Quaternion            direction;          //!< the direction of the ship.
    164170    float                 acceleration;       //!< the acceleration of the ship.
    165     float                 airFriction;        //!< AirFriction.
    166     float                 airViscosity;
     171    //float                 airFriction;        //!< AirFriction.
     172    //float                 airViscosity;
    167173
    168174    byte                  oldMask;            //!< used for synchronisation
Note: See TracChangeset for help on using the changeset viewer.