Changeset 8431 for code/branches/steering
- Timestamp:
- May 9, 2011, 3:56:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/orxonox/worldentities/pawns/SpaceShip.cc
r8430 r8431 66 66 67 67 this->lift_ = 0.2f; 68 this->stallSpeed = 220.0f;68 this->stallSpeed_ = 220.0f; 69 69 70 70 this->bInvertYAxis_ = false; … … 104 104 XMLPortParamVariable(SpaceShip, "boostRate", boostRate_, xmlelement, mode); 105 105 XMLPortParamVariable(SpaceShip, "boostCooldownDuration", boostCooldownDuration_, xmlelement, mode); 106 XMLPortParamVariable(SpaceShip, " float", float_, xmlelement, mode);106 XMLPortParamVariable(SpaceShip, "lift", lift_, xmlelement, mode); 107 107 XMLPortParamVariable(SpaceShip, "stallSpeed", stallSpeed_, xmlelement, mode); 108 108 } … … 175 175 } 176 176 177 COUT(1) << "Vel:" << this-> getLocalVelocity().z * -1 << endl;177 //COUT(1) << "Vel:" << this-> getLocalVelocity().z * -1 << endl; 178 178 179 179 } … … 226 226 227 227 228 if (abs(this-> getLocalVelocity().z) < stallSpeed ) {this->moveUpDown(float_*value*sqrt(abs(this-> getLocalVelocity().z)));}228 if (abs(this-> getLocalVelocity().z) < stallSpeed_) {this->moveUpDown(lift_*value*sqrt(abs(this-> getLocalVelocity().z)));} 229 229 230 230
Note: See TracChangeset
for help on using the changeset viewer.