Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2012, 5:46:12 PM (12 years ago)
Author:
moralelastix
Message:

What ever

Location:
code/branches/turret/src/modules/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turret/src/modules/objects/Turret.cc

    r9469 r9489  
    3939     * @brief Constructor
    4040     */
    41     Turret::Turret(BaseObject* creator) : Pawn(creator)
     41    Turret::Turret(BaseObject* creator) : SpaceShip(creator)
    4242    {
    4343        RegisterObject(Turret);
     
    5353    }
    5454
    55     /*void Turret::rotateYaw(const Vector2& value)
    56     {
    57 
    58     }
    59 
    6055
    6156    void Turret::rotatePitch(const Vector2& value)
    6257    {
    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);
    6462    }
    6563
    66     void Turret::rotateRoll(const Vector2& value)
    67     {
    68 
    69     }*/
    7064
    7165    void Turret::setAlertnessRadius(float value)
  • code/branches/turret/src/modules/objects/Turret.h

    r9469 r9489  
    3838#include "objects/ObjectsPrereqs.h"
    3939
    40 #include "worldentities/pawns/Pawn.h"
     40#include "worldentities/pawns/SpaceShip.h"
    4141
    4242namespace orxonox
    4343{
    44     class _ObjectsExport Turret : public Pawn
     44    class _ObjectsExport Turret : public SpaceShip
    4545    {
    4646        public:
     
    4949
    5050            //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) {}
    5451
    55             /*virtual void rotateYaw(const Vector2& value);
    5652            virtual void rotatePitch(const Vector2& value);
    57             virtual void rotateRoll(const Vector2& value);*/
    5853
    5954            void setAlertnessRadius(float value);
Note: See TracChangeset for help on using the changeset viewer.