Changeset 12376 for code/branches/OrxoBlox_FS19/src/modules/weapons
- Timestamp:
- May 16, 2019, 2:20:38 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc
r12371 r12376 104 104 Vector3 myPosition = otherObject->getPosition(); 105 105 btVector3 positionOtherObject = contactPoint.getPositionWorldOnA(); 106 orxout() << "About to Bounce >D" << endl;106 //orxout() << "About to Bounce >D" << endl; 107 107 //if (positionOtherObject.y < 0) { 108 108 //this.destroy() … … 120 120 distance_Z = -distance_Z; 121 121 122 orxout() << distance_X << endl;123 orxout() << distance_Z << endl;122 //orxout() << distance_X << endl; 123 //orxout() << distance_Z << endl; 124 124 125 125 if (distance_X < distance_Z) { 126 126 velocity.z = -velocity.z; 127 orxout() << "z" << endl;127 //orxout() << "z" << endl; 128 128 } 129 129 if (distance_Z < distance_X) { 130 130 velocity.x = -velocity.x; 131 orxout() << "x" << endl;131 //orxout() << "x" << endl; 132 132 } 133 133 else { 134 134 velocity.x = -velocity.x; 135 135 velocity.z = -velocity.z; 136 orxout() << "both" << endl;136 //orxout() << "both" << endl; 137 137 } 138 138 this->setVelocity(velocity); … … 144 144 { 145 145 146 orxout() << "wanna bounce..." << endl;146 //orxout() << "wanna bounce..." << endl; 147 147 bool result = BasicProjectile::processCollision(otherObject, contactPoint, cs); 148 148 if (result == true) { … … 151 151 } 152 152 } 153 orxout() << "BOUNCED!" << endl;153 //orxout() << "BOUNCED!" << endl; 154 154 155 155 return result; … … 198 198 //this->setSpeed(0); // doesn't work here, why??; 199 199 //Stopping ball 200 orxout() << "Ball stopped" << endl;200 //orxout() << "Ball stopped" << endl; 201 201 velocity.x = 0; 202 202 velocity.y = 0; -
code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BasicProjectile.cc
r12291 r12376 85 85 bool BasicProjectile::processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs) 86 86 { 87 orxout() << "OMG A COLLISION" << endl;87 //orxout() << "OMG A COLLISION" << endl; 88 88 if (!this->bDestroy_ && GameMode::isMaster()) 89 89 {
Note: See TracChangeset
for help on using the changeset viewer.