Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 9, 2009, 12:07:31 AM (15 years ago)
Author:
scheusso
Message:

the whole thing works kind of now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/src/orxonox/objects/controllers/DroneController.cc

    r2763 r2765  
    3030#include "DroneController.h"
    3131#include "objects/worldentities/Drone.h"
     32#include "util/Math.h"
    3233
    3334
     
    5859        totaltime += dt;
    5960        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        }
    6266    }
    6367}
Note: See TracChangeset for help on using the changeset viewer.