Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 8, 2015, 1:02:25 PM (10 years ago)
Author:
gania
Message:

separated MasterController from my hierarchy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/FlyingController.cc

    r10946 r10958  
    4545        this->spread_ = 200;
    4646        this->tolerance_ = 80;
     47        this->bCopyOrientation_ = true;
    4748    }
    4849    FlyingController::~FlyingController()
     
    266267             + (orient* (targetRelativePosition)));
    267268        //let ship finish rotating. also don't call copyOrientation too often as it is a slow function. Don't know how to do it different
    268         if (static_cast<int>(rnd(1.0f) * 100) % 3 == 0)
     269        if (this->bCopyOrientation_)
    269270            this->setTargetOrientation (orient);
    270271        //set a position to fly to
Note: See TracChangeset for help on using the changeset viewer.