Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2019, 2:20:38 PM (5 years ago)
Author:
jeromela
Message:

cleanup function worksls!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BallProjectile.cc

    r12371 r12376  
    104104        Vector3 myPosition = otherObject->getPosition();
    105105        btVector3 positionOtherObject = contactPoint.getPositionWorldOnA();
    106         orxout() << "About to Bounce >D" << endl;
     106        //orxout() << "About to Bounce >D" << endl;
    107107        //if (positionOtherObject.y < 0) {
    108108            //this.destroy()
     
    120120                distance_Z = -distance_Z;
    121121
    122             orxout() << distance_X << endl;
    123             orxout() << distance_Z << endl;
     122            //orxout() << distance_X << endl;
     123            //orxout() << distance_Z << endl;
    124124
    125125            if (distance_X < distance_Z) {
    126126                velocity.z = -velocity.z;
    127                 orxout() << "z" << endl;
     127                //orxout() << "z" << endl;
    128128            }
    129129            if (distance_Z < distance_X) {
    130130                velocity.x = -velocity.x;
    131                 orxout() << "x" << endl;
     131                //orxout() << "x" << endl;
    132132            }
    133133            else {
    134134                velocity.x = -velocity.x;
    135135                velocity.z = -velocity.z;
    136                 orxout() << "both" << endl;
     136                //orxout() << "both" << endl;
    137137            }
    138138            this->setVelocity(velocity);
     
    144144    {
    145145
    146         orxout() << "wanna bounce..." << endl;
     146        //orxout() << "wanna bounce..." << endl;
    147147        bool result = BasicProjectile::processCollision(otherObject, contactPoint, cs);
    148148        if (result == true) {
     
    151151            }
    152152        }
    153         orxout() << "BOUNCED!" << endl;
     153        //orxout() << "BOUNCED!" << endl;
    154154
    155155        return result;
     
    198198                //this->setSpeed(0); // doesn't work here, why??;
    199199                //Stopping ball
    200                 orxout() << "Ball stopped" << endl;
     200                //orxout() << "Ball stopped" << endl;
    201201                velocity.x = 0;
    202202                velocity.y = 0;
Note: See TracChangeset for help on using the changeset viewer.