Changeset 6866 for code/branches/fps/src/orxonox/controllers
- Timestamp:
- May 10, 2010, 12:40:49 PM (15 years ago)
- Location:
- code/branches/fps/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/fps/src/orxonox/controllers/HumanController.cc
r6417 r6866 41 41 namespace orxonox 42 42 { 43 43 44 SetConsoleCommand(HumanController, moveFrontBack, true).setAsInputCommand(); 44 45 SetConsoleCommand(HumanController, moveRightLeft, true).setAsInputCommand(); -
code/branches/fps/src/orxonox/controllers/NewHumanController.cc
r6502 r6866 210 210 if (!controlPaused_ ) 211 211 { 212 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")) ))212 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")) || this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))) 213 213 this->showOverlays(); 214 214 … … 425 425 HumanController::yaw(value); 426 426 427 this->currentYaw_ = value.x; 427 if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))) 428 this->currentYaw_ = value.x; 428 429 } 429 430 … … 434 435 HumanController::pitch(value); 435 436 436 this->currentPitch_ = value.x; 437 if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))) 438 this->currentPitch_ = value.x; 437 439 } 438 440
Note: See TracChangeset
for help on using the changeset viewer.