Changeset 9945 for code/trunk/src/modules/objects/Turret.cc
- Timestamp:
- Jan 3, 2014, 1:50:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/objects/Turret.cc
r9667 r9945 57 57 void Turret::rotatePitch(const Vector2& value) 58 58 { 59 59 orxout()<< "Turret rotate Pitch"<< endl; 60 60 61 62 61 const Quaternion& orient = this->getOrientation(); 62 Radian pitch = orient.getPitch(); 63 63 64 65 64 if((value.x > 0 && pitch < Radian(180)) || (value.x < 0 && pitch > Radian(0))) 65 SpaceShip::rotatePitch(value); 66 66 } 67 67 … … 69 69 void Turret::setAlertnessRadius(float value) 70 70 { 71 71 this->controller_->setAlertnessRadius(value); 72 72 } 73 73 float Turret::getAlertnessRadius() 74 74 { 75 75 return this->controller_->getAlertnessRadius(); 76 76 } 77 77
Note: See TracChangeset
for help on using the changeset viewer.