- Timestamp:
- May 16, 2019, 2:20:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc
r12368 r12376 128 128 */ 129 129 void OrxoBloxBall::tick(float dt) 130 { 130 { 131 131 132 SUPER(OrxoBloxBall, tick, dt); 132 133 … … 148 149 149 150 orxoblox_->LevelUp(); 151 orxoblox_->LevelUp(); 152 orxout() << "LevelUp 2 finished, trying to call end() function"; 153 //this->end(); 154 150 155 151 156 … … 294 299 Vector3 positionStone = Stone->getPosition(); 295 300 Vector3 myPosition = this->getPosition(); 296 orxout() << "About to Bounce >D" << endl;301 //orxout() << "About to Bounce >D" << endl; 297 302 298 303 int distance_X = myPosition.x - positionStone.x; … … 306 311 distance_Z = -distance_Z; 307 312 308 orxout() << distance_X << endl;309 orxout() << distance_Z << endl;313 //orxout() << distance_X << endl; 314 //orxout() << distance_Z << endl; 310 315 311 316 if (distance_X < distance_Z) { 312 317 velocity.z = -velocity.z; 313 orxout() << "z" << endl;318 //orxout() << "z" << endl; 314 319 } 315 320 else if (distance_Z < distance_X) { 316 321 velocity.x = -velocity.x; 317 orxout() << "x" << endl;322 //orxout() << "x" << endl; 318 323 } 319 324 else { 320 325 velocity.x = -velocity.x; 321 326 velocity.z = -velocity.z; 322 orxout() << "both" << endl;327 //orxout() << "both" << endl; 323 328 } 324 329
Note: See TracChangeset
for help on using the changeset viewer.