Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2018, 11:23:24 AM (6 years ago)
Author:
emustafa
Message:

OrxoKartKart controls optimized

File:
1 edited

Legend:

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

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