- Timestamp:
- Oct 28, 2009, 2:38:10 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/steering/src/orxonox/controllers/NewHumanController.cc
r5993 r6001 52 52 { 53 53 RegisterObject(NewHumanController); 54 55 CrossHairOverlay = new OrxonoxOverlay(this); 56 CrossHairOverlay->setBackgroundMaterial("Orxonox/Crosshair3"); 57 CrossHairOverlay->setSize(Vector2(0.08,0.08)); 58 CrossHairOverlay->show(); 54 59 } 55 60 … … 59 64 { 60 65 } 66 } 67 68 void NewHumanController::tick(float dt) { 69 CrossHairOverlay->setPosition(Vector2(static_cast<float>(this->currentYaw_), static_cast<float>(this->currentPitch_))); 70 71 HumanController::tick(dt); 61 72 } 62 73 … … 83 94 84 95 this->currentYaw_ = value.x; 85 std::cout << " X: " << static_cast<float>(this->currentPitch_) << " Y: " << static_cast<float>(this->currentYaw_) << endl;96 std::cout << "Y: " << static_cast<float>(this->currentPitch_) << " X: " << static_cast<float>(this->currentYaw_) << endl; 86 97 } 87 98 void NewHumanController::pitch(const Vector2& value) … … 91 102 92 103 this->currentPitch_ = value.x; 93 std::cout << " X: " << static_cast<float>(this->currentPitch_) << " Y: " << static_cast<float>(this->currentYaw_) << endl;104 std::cout << "Y: " << static_cast<float>(this->currentPitch_) << " X: " << static_cast<float>(this->currentYaw_) << endl; 94 105 } 95 106
Note: See TracChangeset
for help on using the changeset viewer.