Changeset 10258 for code/trunk/src/modules/weapons
- Timestamp:
- Feb 5, 2015, 11:47:13 PM (10 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/weapons/RocketController.cc
r9667 r10258 41 41 namespace orxonox 42 42 { 43 RegisterClass(RocketController); 44 43 45 /** 44 46 @brief … … 97 99 if (distance > 1000 && this->rocket_->getVelocity().squaredLength()<160000) 98 100 this->rocket_->setAcceleration(this->rocket_->getOrientation()*Vector3(-20,-20,-20)); 99 if (distance < 1000) this->rocket_->setAcceleration(0,0,0);101 if (distance < 1000) this->rocket_->setAcceleration(0,0,0); 100 102 101 103 this->rocket_->rotateYaw(-sgn(coord.x)*coord.x*coord.x);
Note: See TracChangeset
for help on using the changeset viewer.