Changeset 11653 for code/branches
- Timestamp:
- Dec 11, 2017, 3:03:56 PM (7 years ago)
- Location:
- code/branches/SOBv2_HS17/src/modules/superorxobros
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc
r11625 r11653 110 110 SOBGumbaBoss* gumbaBoss = orxonox_cast<SOBGumbaBoss*> (otherObject); 111 111 112 if(gumbaBoss != nullptr && !(gumba->hasCollided_)) 112 if(gumbaBoss != nullptr && !(gumba->hasCollided_)) //Fireballs can't destroy GumbaBosses, they get destroyed themselves instead 113 113 { 114 114 this->destroyLater(); -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBGumbaBoss.cc
r11650 r11653 125 125 dir = -1; 126 126 127 Vector3 velocity = getVelocity(); 127 Vector3 velocity = getVelocity(); //Jump 128 128 if(jumpTime_ > jumpTimeMax_){ 129 129 velocity.z = speed_*15; 130 130 jumpTime_ = 0; 131 131 } 132 else{ 132 else{ //Gravity 133 133 velocity.z -= gravityAcceleration_*dt; 134 134 } -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBGumbaBoss.h
r11650 r11653 61 61 62 62 63 63 64 64 65 };
Note: See TracChangeset
for help on using the changeset viewer.