Changeset 7183 for code/trunk/src/orxonox/worldentities
- Timestamp:
- Aug 18, 2010, 7:49:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/worldentities/pawns/FpsPlayer.cc
r7163 r7183 171 171 172 172 Radian pitch = this->cameraPositionRootNode_->getOrientation().getPitch(); 173 if (pitch < Radian(1.5707 ) && pitch > Radian(-1.5707))173 if (pitch < Radian(1.5707f) && pitch > Radian(-1.5707f)) 174 174 { 175 175 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 176 176 } 177 else if (pitch < Radian(-1.5707 ))177 else if (pitch < Radian(-1.5707f)) 178 178 { 179 if (this->pitch_ > 0.0 )179 if (this->pitch_ > 0.0f) 180 180 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 181 else if (pitch < Radian(-1.571 ))182 this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796 ));181 else if (pitch < Radian(-1.571f)) 182 this->cameraPositionRootNode_->pitch(-pitch + Radian(-1.570796f)); 183 183 } 184 else if (pitch > Radian(1.5707 ))184 else if (pitch > Radian(1.5707f)) 185 185 { 186 if (this->pitch_ < 0.0 )186 if (this->pitch_ < 0.0f) 187 187 this->cameraPositionRootNode_->pitch(Radian(this->pitch_ * this->getMouseLookSpeed())); 188 else if (pitch > Radian(1.571 ))189 this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796 ));188 else if (pitch > Radian(1.571f)) 189 this->cameraPositionRootNode_->pitch(-pitch + Radian(1.570796f)); 190 190 } 191 191 this->weaponNode_->setOrientation(this->cameraPositionRootNode_->getOrientation());
Note: See TracChangeset
for help on using the changeset viewer.