Changeset 2765 for code/branches/tutorial/src/orxonox/objects/controllers
- Timestamp:
- Mar 9, 2009, 12:07:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/objects/controllers/DroneController.cc
r2763 r2765 30 30 #include "DroneController.h" 31 31 #include "objects/worldentities/Drone.h" 32 #include "util/Math.h" 32 33 33 34 … … 58 59 totaltime += dt; 59 60 Drone *myDrone = static_cast<Drone*>(this->getControllableEntity()); 60 myDrone->rotateRoll(1000); 61 myDrone->moveFrontBack( 1000 ); 61 if(totaltime<1) 62 { 63 myDrone->moveFrontBack( -sqrt(dt) ); 64 myDrone->rotatePitch(-dt); 65 } 62 66 } 63 67 }
Note: See TracChangeset
for help on using the changeset viewer.