Changeset 12066 for code/branches/OrxoKart_HS18/src/modules/hover
- Timestamp:
- Oct 31, 2018, 11:23:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoKart_HS18/src/modules/hover/HoverShip.cc
r11495 r12066 49 49 50 50 void HoverShip::moveFrontBack(const Vector2& value) 51 { this->steering_.z -= value.x; } 51 { 52 this->steering_.z -= value.x; 53 orxout() << "mFB" << endl; 54 } 52 55 53 56 void HoverShip::moveRightLeft(const Vector2& value) 54 { this->steering_.x += value.x; } 57 { 58 this->rotateYaw(value); 59 orxout() << "mRL" << endl; 60 } 55 61 56 62 void HoverShip::moveUpDown(const Vector2& value) 57 { this->steering_.y += value.x; } 63 { 64 this->steering_.y += value.x; 65 orxout() << "mUD" << endl; 66 } 58 67 59 68 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 } 65 74 66 75 void HoverShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
Note: See TracChangeset
for help on using the changeset viewer.