Changeset 11577 for code/branches/SOBv2_HS17/src
- Timestamp:
- Nov 20, 2017, 4:05:27 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/SOBFigure.cc
r11575 r11577 39 39 #include "graphics/Camera.h" 40 40 #include "graphics/ParticleSpawner.h" 41 #include <OgreMath.h> 41 42 42 43 #include "SOBMushroom.h" … … 156 157 157 158 else if (fireball != nullptr && !(fireball->hasCollided_)){ 158 this-> die();159 //this-> die(); 159 160 } 160 161 … … 197 198 ball->addTemplate("fireball"); 198 199 ball->setPosition(spawnpos); 199 200 bool direction = ((this->getWorldOrientation().getRoll().valueRadians())>-1.6&&(this->getWorldOrientation().getRoll().valueRadians()<1.6)); 201 ball->setDirection(direction); 202 orxout() << "Rotation: " << this->getWorldOrientation().getRoll() << " direction: "<< direction <<endl; 203 //ball-> 204 200 205 } 201 206 } -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.cc
r11575 r11577 79 79 80 80 81 } 82 83 void SOBFireball::setDirection(const bool direction) 84 { 85 if(direction) 86 { 87 goesRight_=true; 88 } 89 else 90 { 91 goesRight_=false; 92 } 81 93 } 82 94 -
code/branches/SOBv2_HS17/src/modules/superorxobros/SOBFireball.h
r11575 r11577 53 53 virtual bool collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) override; 54 54 virtual void tick(float dt) override; 55 55 void setDirection(const bool direction); 56 56 57 57 bool attachedToFigure_;
Note: See TracChangeset
for help on using the changeset viewer.