Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2012, 2:56:55 PM (11 years ago)
Author:
moralelastix
Message:

nix

File:
1 edited

Legend:

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

    r9489 r9497  
    2929#include "Turret.h"
    3030#include "core/CoreIncludes.h"
     31#include "OgreQuaternion.h"
    3132#include "core/XMLPort.h"
    3233#include "controllers/WaypointPatrolController.h"
     
    5657    void Turret::rotatePitch(const Vector2& value)
    5758    {
    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;
    6262    }
    6363
Note: See TracChangeset for help on using the changeset viewer.