Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2017, 2:51:44 PM (7 years ago)
Author:
jkindle
Message:

Added mushrooms and deadzone

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc

    r11400 r11402  
    4040#include "graphics/ParticleSpawner.h"
    4141
     42#include "SOBMushroom.h"
    4243
    4344namespace orxonox
     
    7475
    7576        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        }
    7782
    7883return true;
     
    107112
    108113
     114
    109115        if (firePressed_ == false) {
    110116             gravityAcceleration_ = 350.0;
     
    116122          Vector3 velocity = getVelocity();
    117123          Vector3 position = getPosition();
     124
     125
     126          if (position.z < -100)
     127            dead_ = true;
    118128
    119129          if (dead_) {
Note: See TracChangeset for help on using the changeset viewer.