Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 21, 2009, 12:11:25 PM (15 years ago)
Author:
scheusso
Message:

mouselook now also working when steering a rocket

Location:
code/branches/presentation2/src/orxonox/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc

    r6114 r6115  
    235235            NewHumanController::localController_s->controlMode_ = 0;
    236236    }
     237   
     238    void NewHumanController::changedControllableEntity()
     239    {
     240        this->controlMode_ = 0;
     241        this->currentYaw_ = 0;
     242        this->currentPitch_ = 0;
     243    }
    237244}
  • code/branches/presentation2/src/orxonox/controllers/NewHumanController.h

    r6111 r6115  
    5151
    5252            static void changeMode();
     53           
     54            virtual void changedControllableEntity();
    5355
    5456        protected:
     
    5658           
    5759            unsigned int                controlMode_;
    58             static NewHumanController* localController_s;
     60            static NewHumanController*  localController_s;
    5961        private:
    6062            float                       currentYaw_;
    6163            float                       currentPitch_;
    6264            OrxonoxOverlay*             crossHairOverlay_;
    63             float                                   overlaySize_;
     65            float                       overlaySize_;
    6466            ClassTreeMask               targetMask_;
    6567    };
Note: See TracChangeset for help on using the changeset viewer.