- Timestamp:
- May 24, 2018, 4:22:49 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointSphere.cc
r11992 r12003 76 76 { 77 77 resetposition = this->getPosition(); 78 if((abs(this->resetposition.x - playerpos.x)<5) && (abs(this->resetposition. z - playerpos.z)<5)){78 if((abs(this->resetposition.x - playerpos.x)<5) && (abs(this->resetposition.y - playerpos.y)<5) && (abs(this->resetposition.z - playerpos.z)<5)){ 79 79 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 80 80 return true; 81 81 } 82 83 82 return false; 84 83 }
Note: See TracChangeset
for help on using the changeset viewer.