- Timestamp:
- May 18, 2018, 12:38:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGelb.h
r11898 r11978 42 42 #include "graphics/Camera.h" 43 43 44 44 45 namespace orxonox 45 46 { … … 52 53 53 54 //no rotation 54 //virtual void rotateYaw(const Vector2& value) override{}; 55 virtual void rotateYaw(const Vector2& value) override{ 56 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x); 57 58 Pawn::rotateYaw(value); 59 60 // This function call adds a lift to the ship when it is rotating to make it's movement more "realistic" and enhance the feeling. 61 if (this->getLocalVelocity().z < 0 && std::abs(this->getLocalVelocity().z) < stallSpeed_) 62 this->moveRightLeft(-lift_ / 5.0f * value * sqrt(std::abs(this->getLocalVelocity().y))); 63 }; 55 64 virtual void rotatePitch(const Vector2& value) override{}; 56 65
Note: See TracChangeset
for help on using the changeset viewer.