- Timestamp:
- May 24, 2018, 2:25:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanGelb.h
r11979 r11984 21 21 * 22 22 * Author: 23 * Florian Zinggeler23 * Marc Dreher 24 24 * Co-authors: 25 25 * ... … … 52 52 virtual void tick(float dt); 53 53 54 // no rotation54 //allow rotation in horizontal manner 55 55 virtual void rotateYaw(const Vector2& value) override{ 56 56 this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x); 57 58 57 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 58 }; 59 60 //forbid rotation in the vertical (doesn't work totally proper, see documentation) 64 61 virtual void rotatePitch(const Vector2& value) override{}; 65 62 66 63 private: 67 64 Vector3 actuelposition; 68 Quaternion actuelorient;69 65 70 66 };
Note: See TracChangeset
for help on using the changeset viewer.