- Timestamp:
- May 11, 2018, 1:44:20 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS18/src/modules/pacman/PacmanPointSphere.cc
r11915 r11956 45 45 { 46 46 RegisterObject(PacmanPointSphere); 47 this->setCollisionType(CollisionType::None); 47 this->setCollisionType(CollisionType::None); 48 48 } 49 49 … … 74 74 bool PacmanPointSphere::taken(Vector3 playerpos) 75 75 { 76 if((abs(this->resetposition.x - playerpos.x)<0.1) && (abs(this->resetposition.z - playerpos.z)<0.1)){ 76 resetposition = this->getPosition(); 77 if((abs(this->resetposition.x - playerpos.x)<5) && (abs(this->resetposition.z - playerpos.z)<5)){ 77 78 this->setPosition(Vector3(resetposition.x, -50, resetposition.z)); 78 79 return true;
Note: See TracChangeset
for help on using the changeset viewer.