Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2009, 4:52:45 PM (14 years ago)
Author:
rgrieder
Message:

Added new XML parameter for the Scene: soundReferenceDistance.
This value represents the distance to a sound source where the gain is still 1.0. Further away it will decrease with 1/(distance - soundReferenceDistance).
Default value is 20.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/Scene.h

    r5929 r6372  
    7171                { return this->bShadows_; }
    7272
     73            inline void setSoundReferenceDistance(float distance)
     74                { this->soundReferenceDistance_ = distance; }
     75            inline float getSoundReferenceDistance() const
     76                { return this->soundReferenceDistance_; }
     77
    7378            inline Radar* getRadar()
    7479                { return this->radar_; }
     
    96101            std::list<BaseObject*>   objects_;
    97102            bool                     bShadows_;
     103            float                    soundReferenceDistance_;
    98104            Radar*                   radar_;
    99105
Note: See TracChangeset for help on using the changeset viewer.