Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 20, 2017, 2:28:36 PM (7 years ago)
Author:
varxth
Message:

better Fireball

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc

    r11567 r11569  
    5757        figure_ = nullptr;
    5858        this->enableCollisionCallback();
    59         gravityAcceleration_ = 5.0;
     59        gravityAcceleration_ = 350.0;
    6060        speed_ = 0;
    6161        hasCollided_=false;
     
    6767        collDisX_ = 0;
    6868        collDisZ_ = 0;
     69        hitCounter_ = 0;
    6970
    7071      orxout() << "fireball existed" << endl;
     
    120121        }
    121122
     123        hitCounter_++;
     124
    122125       
    123126        return true;
     
    153156            velocity.z -= gravityAcceleration_*dt;
    154157            velocity.x = dir*speed_;
     158            velocity.y = 0;
    155159            setVelocity(velocity);
    156160
Note: See TracChangeset for help on using the changeset viewer.