Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2018, 2:25:15 PM (6 years ago)
Author:
dreherm
Message:

Added level info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/3DPacman_FS18/src/modules/pacman/PacmanGelb.h

    r11979 r11984  
    2121 *
    2222 *   Author:
    23  *      Florian Zinggeler
     23 *      Marc Dreher
    2424 *   Co-authors:
    2525 *      ...
     
    5252            virtual void tick(float dt);
    5353
    54             //no rotation
     54            //allow rotation in horizontal manner
    5555            virtual void rotateYaw(const Vector2& value) override{
    5656                this->localAngularAcceleration_.setY(this->localAngularAcceleration_.y() + value.x);
    57 
    5857                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)));
    6358            };
     59           
     60            //forbid rotation in the vertical (doesn't work totally proper, see documentation)
    6461            virtual void rotatePitch(const Vector2& value) override{};
    6562
    6663        private:
    6764            Vector3 actuelposition;
    68             Quaternion actuelorient;
    6965       
    7066    };
Note: See TracChangeset for help on using the changeset viewer.