Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2017, 3:17:02 PM (7 years ago)
Author:
varxth
Message:

better than evverevver

File:
1 edited

Legend:

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

    r11651 r11654  
    106106    }
    107107
     108    void SOBGumba::die(){
     109        Vector3 velocity = this->getVelocity();
     110        velocity.y = speed_;
     111        this->setVelocity(velocity);
     112    }
     113
    108114    void SOBGumba::tick(float dt)
    109115    {
     
    141147            if(lifetime_>maxLifetime_)
    142148            {
    143                 this->destroyLater();
     149               
    144150            }
    145151        }
    146152
     153        if(abs(this->getPosition().z) > 1000) delete this;
     154
    147155    }
    148156}
Note: See TracChangeset for help on using the changeset viewer.