Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2018, 10:13:31 AM (5 years ago)
Author:
emustafa
Message:

reverted hover files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoKart_HS18/src/modules/hover/HoverShip.cc

    r12066 r12073  
    4949
    5050    void HoverShip::moveFrontBack(const Vector2& value)
    51         {
    52             this->steering_.z -= value.x;
    53             orxout() << "mFB" << endl;
    54         }
     51        { this->steering_.z -= value.x; }
    5552
    5653    void HoverShip::moveRightLeft(const Vector2& value)
    57         {
    58             this->rotateYaw(value);
    59             orxout() << "mRL" << endl;
    60         }
     54        { this->steering_.x += value.x; }
    6155
    6256    void HoverShip::moveUpDown(const Vector2& value)
    63         {
    64             this->steering_.y += value.x;
    65             orxout() << "mUD" << endl;
    66         }
     57        { this->steering_.y += value.x; }
    6758
    6859    void HoverShip::rotateYaw(const Vector2& value)
    69         {
    70             this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() - value.x);
    71             //orxout() << value;
    72             Pawn::rotateYaw(value);
    73         }
     60    {
     61        this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
     62
     63        Pawn::rotateYaw(value);
     64    }
    7465
    7566    void HoverShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset for help on using the changeset viewer.