Changeset 9497 for code/branches/turret/src/modules
- Timestamp:
- Dec 10, 2012, 2:56:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turret/src/modules/objects/Turret.cc
r9489 r9497 29 29 #include "Turret.h" 30 30 #include "core/CoreIncludes.h" 31 #include "OgreQuaternion.h" 31 32 #include "core/XMLPort.h" 32 33 #include "controllers/WaypointPatrolController.h" … … 56 57 void Turret::rotatePitch(const Vector2& value) 57 58 { 58 Vector2 pitch = value; 59 float nextPitch = this->localAngularAcceleration_.x() + pitch.x*0.8f; 60 // Einschraenken auf 0 bis 180 61 this->localAngularAcceleration_.setX(nextPitch); 59 /*this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x*0.8f); 60 Pawn::rotatePitch(value);*/ 61 orxout()<< "Turret rotate Pitch"<< endl; 62 62 } 63 63
Note: See TracChangeset
for help on using the changeset viewer.