Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2009, 11:21:40 AM (14 years ago)
Author:
rgrieder
Message:

Resolved projectile targeting problem by introducing a ClassTreeMask. It's a bit hacky but currently I don't see another quick way.
There is a problem though: The weapons aim into other directions while rolling the space ship…
I just couldn't figure it out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/steering/src/orxonox/controllers/NewHumanController.h

    r6045 r6055  
    3232#include "OrxonoxPrereqs.h"
    3333
     34#include "core/ClassTreeMask.h"
    3435#include "HumanController.h"
    35 #include "overlays/OrxonoxOverlay.h"
    36 #include "util/OgreForwardRefs.h"
    3736
    3837namespace orxonox
     
    5352            void changeMode(unsigned int controleMode);
    5453
     54            virtual bool canFindTarget() { return true; }
    5555            virtual Vector3 getTarget();
    5656
     
    5858            float                       currentYaw_;
    5959            float                       currentPitch_;
    60             OrxonoxOverlay              *CrossHairOverlay;
    61             float                       overlaySize;
    62             unsigned int                controlMode;
     60            OrxonoxOverlay*             crossHairOverlay_;
     61            float                                   overlaySize_;
     62            unsigned int                controlMode_;
     63            ClassTreeMask               targetMask_;
    6364    };
    6465}
Note: See TracChangeset for help on using the changeset viewer.