Changeset 6092 in orxonox.OLD for branches/spaceshipcontrol/src
- Timestamp:
- Dec 13, 2005, 9:41:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/space_ships/helicopter.cc
r6058 r6092 285 285 { 286 286 rot += Vector (0,0,1); 287 rotVal -= .4;287 rotVal -= time/5; 288 288 } 289 289 } … … 300 300 { 301 301 rot += Vector (0,0,1); 302 rotVal += .4;302 rotVal += time/5; 303 303 } 304 304 } 305 305 else 306 306 { 307 if(this->getAbsDir X().y > 0.02) this->shiftDir(Quaternion(-time/5, Vector(0,0,1)));307 if(this->getAbsDirZ().y > 0.02) this->shiftDir(Quaternion(-time/5, Vector(0,0,1))); 308 308 } 309 309 … … 316 316 { 317 317 rot +=Vector(1,0,0); 318 rotVal -= .06; 319 } 320 } 318 rotVal -= time/5; 319 } 320 } 321 else 322 { 323 if(this->getAbsDirZ().y > 0.02) this->shiftDir(Quaternion(time/5, Vector(1,0,0))); 324 } 325 321 326 if( this->bRight /* > this->getRelCoor().z*2*/) 322 327 { … … 328 333 { 329 334 rot += Vector(1,0,0); 330 rotVal += .06; 331 } 332 } 335 rotVal += time/5; 336 } 337 } 338 else 339 { 340 if(this->getAbsDirZ().y < -0.02) this->shiftDir(Quaternion(-time/5, Vector(1,0,0))); 341 } 333 342 334 343 if( this->bRollL /* > -this->getRelCoor().z*2*/)
Note: See TracChangeset
for help on using the changeset viewer.