Changeset 11894 for code/branches/3DPacman_FS18/src
- Timestamp:
- Apr 20, 2018, 10:18:23 AM (7 years ago)
- Location:
- code/branches/3DPacman_FS18/src/modules/Pacman
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/Pacman/PacmanGelb.cc
r11859 r11894 46 46 void PacmanGelb::tick(float dt) 47 47 { 48 SUPER(PacmanGelb, tick, dt); 48 49 //bring player back to ground 49 50 actuelposition = this->getPosition(); 50 actuelposition.y = 0;51 actuelposition.y = 10; 51 52 this->setPosition(actuelposition); 52 53 // Camera54 Camera* camera = this->getCamera();55 if (camera != nullptr)56 {57 actuelorient = camera->getOrientation();58 actuelorient.y = 0;59 camera->setOrientation(actuelorient);60 }61 62 SUPER(PacmanGelb, tick, dt);63 53 } 64 54 } -
code/branches/3DPacman_FS18/src/modules/Pacman/PacmanGelb.h
r11862 r11894 51 51 virtual void tick(float dt); 52 52 53 //no rotation 54 virtual void rotateYaw(const Vector2& value) override{}; 55 virtual void rotateYaw(const Vector2& value) override{}; 56 53 57 private: 54 58 Vector3 actuelposition;
Note: See TracChangeset
for help on using the changeset viewer.