Changeset 7860 for code/trunk/src/orxonox/worldentities/pawns
- Timestamp:
- Feb 12, 2011, 11:37:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/pawns/SpaceShip.cc
r7801 r7860 142 142 this->localAngularAcceleration_ *= this->getLocalInertia() * this->rotationThrust_; 143 143 this->physicalBody_->applyTorque(physicalBody_->getWorldTransform().getBasis() * this->localAngularAcceleration_); 144 this->localAngularAcceleration_.setValue(0, 0, 0); 145 } 146 144 } 145 146 this->localAngularAcceleration_.setValue(0, 0, 0); 147 147 148 if(!this->bBoostCooldown_ && this->boostPower_ < this->initialBoostPower_) 148 149 { … … 161 162 } 162 163 } 163 164 164 165 void SpaceShip::boostCooledDown(void) 165 166 { … … 205 206 Pawn::rotateRoll(value); 206 207 } 207 208 208 209 // TODO: something seems to call this function every tick, could probably handled a little more efficiently! 209 210 void SpaceShip::setBoost(bool bBoost) … … 211 212 if(bBoost == this->bBoost_) 212 213 return; 213 214 214 215 if(bBoost) 215 216 this->boost();
Note: See TracChangeset
for help on using the changeset viewer.