- Timestamp:
- Apr 6, 2017, 3:32:35 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBFigure.cc
r11383 r11392 39 39 #include "graphics/Camera.h" 40 40 41 42 41 namespace orxonox 43 42 { … … 58 57 lastSpeed_z = 0.0; 59 58 60 gravityAcceleration_ = 250.0;//8.0 59 gravityAcceleration_ = 250.0; 60 pitch_ = 0.0; 61 61 62 62 dead_ = false; … … 99 99 if (firePressed_ && std::abs(velocity.z) < 0.07 && std::abs(lastSpeed_z) < 0.07) { 100 100 velocity.z = 150; 101 } 101 } 102 103 // rotate(1,getOrientation()* WorldEntity::FRONT) 102 104 103 105 //Left-right movement with acceleration … … 105 107 if (std::abs(velocity.x) < maxvelocity_x) { 106 108 velocity.x += speedAddedPerTick; 109 // if (pitch_ > 0.0) { 110 // pitch -= turn_fac*dt); 111 // } 107 112 } 108 113 } else if (moveLeftPressed_) { … … 112 117 } else { 113 118 velocity.x /= 1.1; 114 } 115 119 } 120 116 121 117 122 velocity.z -= gravityAcceleration_*dt; … … 134 139 135 140 141 136 142 } 137 143 … … 149 155 150 156 } 151 152 153 154 155 156 /* void SOBFigure::CollisionWithEnemy(SOBEnemy* enemy)157 {158 if (rocketActive_ == nullptr && propellerActive_ == nullptr && shieldActive_ == nullptr)159 {160 dead_ = true;161 }162 }*/163 157 164 158
Note: See TracChangeset
for help on using the changeset viewer.