Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 12291 for code


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

BallProjectile method is caled during collision

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

    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;
  • code/branches/OrxoBlox_FS19/src/modules/weapons/projectiles/BasicProjectile.cc

    r11108 r12291  
    8585    bool BasicProjectile::processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs)
    8686    {
     87        orxout() << "OMG A COLLISION" << endl;
    8788        if (!this->bDestroy_ && GameMode::isMaster())
    8889        {
Note: See TracChangeset for help on using the changeset viewer.