Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2008, 12:05:12 AM (17 years ago)
Author:
rgrieder
Message:
  • Radar now working like before
  • but more of a svn save..

There is class called Radar which takes care of the focus and all objects that can be displayed on a Radar.
The actual visual implementation is in HUDRadar.
To make a object radar viewable, simply implement RadarViewable and set the WorldEntitiy pointer in the constructor (assertation will fail otherwise!).
You can also set a camouflage value between 0 and 1 that tells how good a radar can see an object.
The HUDRadar (or another one) on the other side has a sensitivity between 0 and 1. So only if the sensitivity is higher than the camouflage value, the object gets displayed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/Orxonox.h

    r1604 r1613  
    9595      Level*                startLevel_;    //!< current hard coded default level
    9696      Level*                hud_;           //!< 'level' object fo the HUD
     97      Radar*                radar_;         //!< represents the Radar (not the HUD part)
    9798      //audio::AudioManager*  auMan_;         //!< audio manager
    9899      Ogre::Timer*          timer_;         //!< Main loop timer
Note: See TracChangeset for help on using the changeset viewer.