Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 30, 2009, 2:12:57 PM (15 years ago)
Author:
Naaduun
Message:

=added dynamic libs to orxonox/tools. changed humancontroller to use mouseview

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/map/src/orxonox/objects/controllers/HumanController.cc

    r2662 r2942  
    3535#include "objects/worldentities/pawns/Pawn.h"
    3636#include "objects/gametypes/Gametype.h"
     37#include "overlays/map/Map.h"
    3738
    3839namespace orxonox
     
    9293    void HumanController::rotateYaw(const Vector2& value)
    9394    {
     95        //Hack to enable mouselook in map
     96        if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() )
     97        {
     98            Map::getSingletonPtr()->rotateYaw(value);
     99            return;
     100        }
    94101        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    95102            HumanController::localController_s->controllableEntity_->rotateYaw(value);
     
    98105    void HumanController::rotatePitch(const Vector2& value)
    99106    {
     107        //Hack to enable mouselook in map
     108        if ( Map::getSingletonPtr() && Map::getSingletonPtr()->getVisibility() && HumanController::localController_s->controllableEntity_->isInMouseLook() )
     109        {
     110            Map::getSingletonPtr()->rotatePitch(value);
     111            return;
     112        }
    100113        if (HumanController::localController_s && HumanController::localController_s->controllableEntity_)
    101114            HumanController::localController_s->controllableEntity_->rotatePitch(value);
Note: See TracChangeset for help on using the changeset viewer.