Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2019, 2:53:00 PM (5 years ago)
Author:
pomselj
Message:

Projectiles survive infinitely

File:
1 edited

Legend:

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

    r12376 r12378  
    104104        Vector3 myPosition = otherObject->getPosition();
    105105        btVector3 positionOtherObject = contactPoint.getPositionWorldOnA();
    106         //orxout() << "About to Bounce >D" << endl;
    107         //if (positionOtherObject.y < 0) {
    108             //this.destroy()
    109         //}S
    110         //else {
    111106       
    112107            int distance_X = positionOtherObject.getX() - myPosition.x;
     
    143138    bool BallProjectile::processCollision(WorldEntity* otherObject, btManifoldPoint& contactPoint, const btCollisionShape* cs)
    144139    {
    145 
    146         //orxout() << "wanna bounce..." << endl;
    147140        bool result = BasicProjectile::processCollision(otherObject, contactPoint, cs);
    148141        if (result == true) {
    149142            if (otherObject->isA(Class(OrxoBloxStones))) {
    150143                Bounce(otherObject, contactPoint, cs);
    151             }
    152         }
    153         //orxout() << "BOUNCED!" << endl;
    154 
     144                orxout() << "BOUNCED!" << endl;
     145            }
     146        }
    155147        return result;
    156148    }
     
    289281    }
    290282
     283    void BallProjectile::destroyObject(void)
     284    {
     285        if(GameMode::isMaster()) {
     286        }
     287    }
     288
     289
    291290
    292291}
Note: See TracChangeset for help on using the changeset viewer.