- Timestamp:
- Apr 20, 2018, 10:18:23 AM (6 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.