Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2008, 1:52:00 AM (15 years ago)
Author:
rgrieder
Message:

Two bugfixes and an optimisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/SpaceShip.cc

    r2459 r2463  
    141141    void SpaceShip::rotateYaw(const Vector2& value)
    142142    {
    143         this->localAngularAcceleration_.setY(this->localLinearAcceleration_.y() + value.x);
     143        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
    144144    }
    145145
    146146    void SpaceShip::rotatePitch(const Vector2& value)
    147147    {
    148         this->localAngularAcceleration_.setX(this->localLinearAcceleration_.x() + value.x);
     148        this->localAngularAcceleration_.setX(this->localAngularAcceleration_.x() + value.x);
    149149    }
    150150
    151151    void SpaceShip::rotateRoll(const Vector2& value)
    152152    {
    153         this->localAngularAcceleration_.setZ(this->localLinearAcceleration_.z() - value.x);
     153        this->localAngularAcceleration_.setZ(this->localAngularAcceleration_.z() - value.x);
    154154    }
    155155
Note: See TracChangeset for help on using the changeset viewer.