Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9497


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

nix

Location:
code/branches/turret
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/turret/data/levels/turretTest.oxw

    r9489 r9497  
    4444
    4545
    46 <SpaceShip position="0,10,0" pitch="-45" yaw="225" roll="0">
     46<SpaceShip position="0,10,0" pitch="90" yaw="0" roll="0">
    4747    <templates>
    4848        <Template link=spaceshipturret />
  • 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.