Changeset 9489 for code/branches/turret/src
- Timestamp:
- Dec 3, 2012, 5:46:12 PM (12 years ago)
- Location:
- code/branches/turret/src/modules/objects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turret/src/modules/objects/Turret.cc
r9469 r9489 39 39 * @brief Constructor 40 40 */ 41 Turret::Turret(BaseObject* creator) : Pawn(creator)41 Turret::Turret(BaseObject* creator) : SpaceShip(creator) 42 42 { 43 43 RegisterObject(Turret); … … 53 53 } 54 54 55 /*void Turret::rotateYaw(const Vector2& value)56 {57 58 }59 60 55 61 56 void Turret::rotatePitch(const Vector2& value) 62 57 { 63 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); 64 62 } 65 63 66 void Turret::rotateRoll(const Vector2& value)67 {68 69 }*/70 64 71 65 void Turret::setAlertnessRadius(float value) -
code/branches/turret/src/modules/objects/Turret.h
r9469 r9489 38 38 #include "objects/ObjectsPrereqs.h" 39 39 40 #include "worldentities/pawns/ Pawn.h"40 #include "worldentities/pawns/SpaceShip.h" 41 41 42 42 namespace orxonox 43 43 { 44 class _ObjectsExport Turret : public Pawn44 class _ObjectsExport Turret : public SpaceShip 45 45 { 46 46 public: … … 49 49 50 50 //virtual void tick(float dt); 51 virtual void moveFrontBack(const Vector2& value) {}52 virtual void moveRightLeft(const Vector2& value) {}53 virtual void moveUpDown(const Vector2& value) {}54 51 55 /*virtual void rotateYaw(const Vector2& value);56 52 virtual void rotatePitch(const Vector2& value); 57 virtual void rotateRoll(const Vector2& value);*/58 53 59 54 void setAlertnessRadius(float value);
Note: See TracChangeset
for help on using the changeset viewer.