- Timestamp:
- May 24, 2011, 4:33:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/dockingsystem2/src/modules/docking/DockingController.cc
r8544 r8560 93 93 if (docking) 94 94 { 95 COUT( 0) << "DockingController::takeControl Taking over control." << std::endl;95 COUT(4) << "DockingController::takeControl Taking over control." << std::endl; 96 96 97 97 entity->setDestroyWhenPlayerLeft(false); … … 104 104 void DockingController::positionReached() 105 105 { 106 COUT( 0) << "DockingController::positionReached() called." << std::endl;106 COUT(4) << "DockingController::positionReached() called." << std::endl; 107 107 108 108 assert(this->player); … … 110 110 111 111 // stop spaceship 112 dock->attach(entity);112 entity->setPosition(dock->getWorldPosition()); 113 113 entity->setVelocity(0, 0, 0); 114 entity->setOrientation(dock->get Orientation());114 entity->setOrientation(dock->getWorldOrientation()); 115 115 116 116 // give control back to player
Note: See TracChangeset
for help on using the changeset viewer.