Changeset 2776 for code/branches/tutorial/src/orxonox/objects
- Timestamp:
- Mar 12, 2009, 3:55:11 PM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial/src/orxonox/objects/controllers/DroneController.cc_sunsi
r2775 r2776 34 34 namespace orxonox 35 35 { 36 CreateFactory(DroneController); 36 37 DroneController::DroneController(BaseObject* creator) : Controller(creator) 37 38 { … … 39 40 // - make sure to register the object in the factory 40 41 // - do any kind of initialisation 41 42 RegisterObject(DroneController); 42 43 43 44 … … 61 62 // - rotatePitch, rotateYaw, rotateRoll 62 63 // - apply the to myDrone (e.g. myDrone->rotateYaw(..) ) 64 double d = rnd(); 65 //COUT(0) << "Drone rotateRoll: " << d << endl; 66 myDrone->rotateRoll(d); 67 myDrone->moveFrontBack(sin(d)); 63 68 64 69 }
Note: See TracChangeset
for help on using the changeset viewer.