Changeset 9167 in orxonox.OLD for branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
- Timestamp:
- Jul 4, 2006, 8:20:52 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9159 r9167 424 424 if (this->toTravelHeight != NULL) 425 425 { 426 this->travelNode->shiftCoor(Vector(0, (*toTravelHeight - this->travelNode->getAbsCoor().y) * dt , 0));426 this->travelNode->shiftCoor(Vector(0, (*toTravelHeight - this->travelNode->getAbsCoor().y) * dt * 10.0, 0)); 427 427 if (fabsf(this->travelNode->getAbsCoor().y - *this->toTravelHeight) < .1) 428 428 { … … 435 435 accel.y = 0.0; 436 436 437 438 437 Vector accelerationDir = this->getAbsDir().apply(accel * this->acceleration); 439 438 accelerationDir.y = 0.0; 440 441 442 /*443 if (this->getRelCoor().z > this->travelDistance.y && accel.z > 0.0)444 accel.z = 0.0f;445 if (this->getRelCoor().z < -this->travelDistance.y && accel.z < 0.0)446 accel.z = 0.0f;447 448 if (this->getRelCoor().x > this->travelDistance.x && accel.x > 0.0)449 accel.x = 0.0f;450 if (this->getRelCoor().x < -this->travelDistance.x && accel.x < 0.0)451 accel.x = 0.0f;*/452 453 439 454 440 // this is the air friction (necessary for a smooth control) … … 523 509 else if (cameraLook < -M_PI_4) 524 510 cameraLook = -M_PI_4; 525 //this->cameraNode.setRelDirSoft(this->direction,10);526 511 } 527 512 }
Note: See TracChangeset
for help on using the changeset viewer.