Changeset 9497
- Timestamp:
- Dec 10, 2012, 2:56:55 PM (12 years ago)
- Location:
- code/branches/turret
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turret/data/levels/turretTest.oxw
r9489 r9497 44 44 45 45 46 <SpaceShip position="0,10,0" pitch=" -45" yaw="225" roll="0">46 <SpaceShip position="0,10,0" pitch="90" yaw="0" roll="0"> 47 47 <templates> 48 48 <Template link=spaceshipturret /> -
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.