- Timestamp:
- Jun 9, 2010, 9:32:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3/src/modules/weapons/RocketController.cc
r7021 r7127 28 28 29 29 #include "RocketController.h" 30 #include "projectiles/SimpleRocket.h" 30 #include "projectiles/SimpleRocket.h" 31 31 #include "util/Math.h" 32 32 #include "weapons/projectiles/SimpleRocket.h" … … 66 66 this->moveToTargetPosition(); 67 67 } 68 69 68 69 70 70 } 71 71 … … 102 102 103 103 104 if (distance > 1000 && this->rocket_->getVelocity().squaredLength()<160000) 104 if (distance > 1000 && this->rocket_->getVelocity().squaredLength()<160000) 105 105 this->rocket_->setAcceleration(this->rocket_->getOrientation()*Vector3(-20,-20,-20)); 106 106 if (distance <1000) this->rocket_->setAcceleration(0,0,0);
Note: See TracChangeset
for help on using the changeset viewer.