Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2019, 2:06:24 PM (5 years ago)
Author:
pomselj
Message:

BallProjectile method is caled during collision

File:
1 edited

Legend:

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

    r12281 r12291  
    9292        Vector3 positionOtherObject = otherObject->getPosition();
    9393        Vector3 contactPosition = this->getPosition();
    94 
     94        orxout() << "About to Bounce >D" << endl;
    9595        //if (positionOtherObject.y < 0) {
    9696            //this.destroy()
    97         //}
     97        //}S
    9898        //else {
    9999       
     
    109109
    110110            if (distance_X < distance_Y)
     111                velocity.y = -velocity.y;
     112            if (distance_Y < distance_X)
    111113                velocity.x = -velocity.x;
    112             if (distance_Y < distance_X)
    113                 velocity.y = -velocity.y;
    114114            else {
    115115                velocity.x = -velocity.x;
Note: See TracChangeset for help on using the changeset viewer.