- Timestamp:
- Mar 28, 2019, 3:47:15 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/3DPacman_FS19/src/modules/pacman/PacmanGhost.cc
r12252 r12259 119 119 if(!(abs(this->actuelposition.z-target_z)<0.5)) { 120 120 velocity = Vector3(0,0,-sgn(this->actuelposition.z-this->target_z)); 121 move(dt, actuelposition, velocity);121 move(dt, actuelposition, newGoal, velocity); 122 122 } 123 123 if(!(abs(this->actuelposition.x-target_x)<0.5)){ … … 126 126 } 127 127 } 128 129 else{ 130 while (lockmove){}; 131 lockmove=true; 132 133 if(this.colour=1){ 134 //calculate new goal 135 136 } 137 138 else if(this.colour=2){ 139 140 } 141 142 else if(this.colour=3){ 143 144 } 145 146 else if(this.colour=4){ 147 148 } 149 150 getShortestPath(actuelposition, goal_x, goal_z) 151 //setnewTarget 152 } 153 /* 128 154 //Check on which position the ghost has arrived and set new target 129 155 else{ … … 338 364 lockmove = false; 339 365 } 340 366 */ 341 367 } 342 368
Note: See TracChangeset
for help on using the changeset viewer.