- Timestamp:
- May 8, 2018, 1:20:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointAfraid.cc
r11939 r11954 74 74 bool PacmanPointAfraid::taken(Vector3 playerpos) 75 75 { 76 if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){ 76 Vector3 resetposition = this->getPosition(); 77 78 if((abs(resetposition.x - playerpos.x)<1) && (abs(resetposition.z - playerpos.z)<1)){ 77 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 78 80 return true;
Note: See TracChangeset
for help on using the changeset viewer.