Changeset 8545 for code/branches/steering/src/orxonox
- Timestamp:
- May 23, 2011, 4:12:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/orxonox/worldentities/pawns/SpaceShip.cc
r8431 r8545 65 65 this->bBoostCooldown_ = false; 66 66 67 this->lift_ = 0.2f;68 this->stallSpeed_ = 220.0f; 67 this->lift_ = 1.0f; // factor of the lift, standard is 1 68 this->stallSpeed_ = 220.0f; // max speed where lift is added 69 69 70 70 this->bInvertYAxis_ = false; … … 175 175 } 176 176 177 //COUT(1) << "Vel:" << this-> getLocalVelocity().z * -1 << endl;178 179 177 } 180 178 } … … 224 222 Pawn::rotatePitch(value); 225 223 226 227 228 if (abs(this-> getLocalVelocity().z) < stallSpeed_) {this->moveUpDown(lift_*value*sqrt(abs(this-> getLocalVelocity().z)));}229 230 224 225 //This function call adds a lift to the ship when it is pitching to make it's movement more "realistic" and enhance the feeling. 226 if (abs(this-> getLocalVelocity().z) < stallSpeed_) {this->moveUpDown(lift_ / 5 * value * sqrt(abs(this-> getLocalVelocity().z)));} 227 228 231 229 232 230 … … 238 236 239 237 Pawn::rotateRoll(value); 240 238 241 239 } 242 240
Note: See TracChangeset
for help on using the changeset viewer.