- Timestamp:
- Dec 11, 2017, 3:17:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBGumba.cc
r11651 r11654 106 106 } 107 107 108 void SOBGumba::die(){ 109 Vector3 velocity = this->getVelocity(); 110 velocity.y = speed_; 111 this->setVelocity(velocity); 112 } 113 108 114 void SOBGumba::tick(float dt) 109 115 { … … 141 147 if(lifetime_>maxLifetime_) 142 148 { 143 this->destroyLater();149 144 150 } 145 151 } 146 152 153 if(abs(this->getPosition().z) > 1000) delete this; 154 147 155 } 148 156 }
Note: See TracChangeset
for help on using the changeset viewer.