Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2011, 2:02:05 PM (14 years ago)
Author:
dafrick
Message:

Cleanup. Replacing tabs with spaces.

Location:
code/branches/steering/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/worldentities/pawns/SpaceShip.cc

    r8545 r8595  
    5454        this->localLinearAcceleration_.setValue(0, 0, 0);
    5555        this->localAngularAcceleration_.setValue(0, 0, 0);
    56         this->bBoost_ = false;
     56    this->bBoost_ = false;
    5757        this->steering_ = Vector3::ZERO;
    5858        this->engine_ = 0;
     
    6565        this->bBoostCooldown_ = false;
    6666
    67         this->lift_ = 1.0f;                         // factor of the lift, standard is 1
    68         this->stallSpeed_ = 220.0f;                 // max speed where lift is added
     67        this->lift_ = 1.0f;                         // factor of the lift, standard is 1
     68        this->stallSpeed_ = 220.0f;                 // max speed where lift is added
    6969
    7070        this->bInvertYAxis_ = false;
     
    8383
    8484
    85        
     85   
    8686}
    8787
     
    104104        XMLPortParamVariable(SpaceShip, "boostRate", boostRate_, xmlelement, mode);
    105105        XMLPortParamVariable(SpaceShip, "boostCooldownDuration", boostCooldownDuration_, xmlelement, mode);
    106         XMLPortParamVariable(SpaceShip, "lift", lift_, xmlelement, mode);
    107         XMLPortParamVariable(SpaceShip, "stallSpeed", stallSpeed_, xmlelement, mode);
     106        XMLPortParamVariable(SpaceShip, "lift", lift_, xmlelement, mode);
     107        XMLPortParamVariable(SpaceShip, "stallSpeed", stallSpeed_, xmlelement, mode);
    108108    }
    109109
     
    174174                }
    175175            }
    176        
     176   
    177177        }
    178178    }
     
    202202        this->steering_.y = value.x;
    203203
    204 
    205 
    206 
    207 
    208204    }
    209205
     
    221217
    222218        Pawn::rotatePitch(value);
    223 
    224219
    225220        //This function call adds a lift to the ship when it is pitching to make it's movement more "realistic" and enhance the feeling.
    226221        if (abs(this-> getLocalVelocity().z) < stallSpeed_)  {this->moveUpDown(lift_ / 5 * value * sqrt(abs(this-> getLocalVelocity().z)));}
    227 
    228 
    229 
    230222
    231223    }
  • code/branches/steering/src/orxonox/worldentities/pawns/SpaceShip.h

    r8430 r8595  
    8989            float boostPowerRate_;
    9090            float boostCooldownDuration_;
    91             float lift_;
    92             float stallSpeed_;
     91            float lift_;
     92            float stallSpeed_;
    9393            Vector3 steering_;
    9494            float primaryThrust_;
     
    9898            btVector3 localAngularAcceleration_;
    9999
    100          
     100     
    101101
    102102        private:
Note: See TracChangeset for help on using the changeset viewer.