- Timestamp:
- Nov 7, 2018, 10:13:31 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/hover/HoverShip.cc
r12066 r12073 49 49 50 50 void HoverShip::moveFrontBack(const Vector2& value) 51 { 52 this->steering_.z -= value.x; 53 orxout() << "mFB" << endl; 54 } 51 { this->steering_.z -= value.x; } 55 52 56 53 void HoverShip::moveRightLeft(const Vector2& value) 57 { 58 this->rotateYaw(value); 59 orxout() << "mRL" << endl; 60 } 54 { this->steering_.x += value.x; } 61 55 62 56 void HoverShip::moveUpDown(const Vector2& value) 63 { 64 this->steering_.y += value.x; 65 orxout() << "mUD" << endl; 66 } 57 { this->steering_.y += value.x; } 67 58 68 59 void HoverShip::rotateYaw(const Vector2& value) 69 70 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() -value.x);71 //orxout() << value; 72 73 60 { 61 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x); 62 63 Pawn::rotateYaw(value); 64 } 74 65 75 66 void HoverShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset
for help on using the changeset viewer.