- Timestamp:
- Apr 25, 2017, 2:51:44 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc
r11400 r11402 40 40 #include "graphics/ParticleSpawner.h" 41 41 42 #include "SOBMushroom.h" 42 43 43 44 namespace orxonox … … 74 75 75 76 isColliding_ = true; 76 77 SOBMushroom* mush = orxonox_cast<SOBMushroom*>(otherObject); 78 if (mush != nullptr) { 79 orxout() << "YEPPIE" << endl; 80 //DESTROY THE OTHER OBJECT otherObject.destroyLater(); 81 } 77 82 78 83 return true; … … 107 112 108 113 114 109 115 if (firePressed_ == false) { 110 116 gravityAcceleration_ = 350.0; … … 116 122 Vector3 velocity = getVelocity(); 117 123 Vector3 position = getPosition(); 124 125 126 if (position.z < -100) 127 dead_ = true; 118 128 119 129 if (dead_) {
Note: See TracChangeset
for help on using the changeset viewer.