Changeset 392
- Timestamp:
- Dec 5, 2007, 2:53:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/spaceship_steering.cc
r379 r392 1 #include "Ogre SceneNode.h"1 #include "Ogre.h" 2 2 #include "spaceship_steering.h" 3 3 using namespace Ogre; … … 67 67 if(speedRotateUpDown_ < 0) 68 68 speedRotateUpDown_ += accelerationRotateUpDown_*time; 69 if(abs(speedRotateUpDown_)<accelerationRotateUpDown_*time) 70 speedRotateUpDown_ = 0; 69 71 } 70 72 … … 89 91 if(speedRotateRightLeft_ < 0) 90 92 speedRotateRightLeft_ += accelerationRotateRightLeft_*time; 93 if(abs(speedRotateRightLeft_)<accelerationRotateRightLeft_*time) 94 speedRotateRightLeft_ = 0; 91 95 } 92 96 … … 111 115 if(speedLoopRightLeft_ < 0) 112 116 speedLoopRightLeft_ += accelerationLoopRightLeft_*time; 117 if(abs(speedLoopRightLeft_)<accelerationLoopRightLeft_*time) 118 speedLoopRightLeft_ = 0; 113 119 } 114 120
Note: See TracChangeset
for help on using the changeset viewer.