- Timestamp:
- May 16, 2019, 2:53:00 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc
r12376 r12378 104 104 Vector3 myPosition = otherObject->getPosition(); 105 105 btVector3 positionOtherObject = contactPoint.getPositionWorldOnA(); 106 //orxout() << "About to Bounce >D" << endl;107 //if (positionOtherObject.y < 0) {108 //this.destroy()109 //}S110 //else {111 106 112 107 int distance_X = positionOtherObject.getX() - myPosition.x; … … 143 138 bool BallProjectile::processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs) 144 139 { 145 146 //orxout() << "wanna bounce..." << endl;147 140 bool result = BasicProjectile::processCollision(otherObject, contactPoint, cs); 148 141 if (result == true) { 149 142 if (otherObject->isA(Class(OrxoBloxStones))) { 150 143 Bounce(otherObject, contactPoint, cs); 151 } 152 } 153 //orxout() << "BOUNCED!" << endl; 154 144 orxout() << "BOUNCED!" << endl; 145 } 146 } 155 147 return result; 156 148 } … … 289 281 } 290 282 283 void BallProjectile::destroyObject(void) 284 { 285 if(GameMode::isMaster()) { 286 } 287 } 288 289 291 290 292 291 }
Note: See TracChangeset
for help on using the changeset viewer.