mirror of
https://github.com/overte-org/overte.git
synced 2025-07-25 14:47:24 +02:00
added the first pass at mode computation
This commit is contained in:
parent
7b49ae4950
commit
61a935dbb5
2 changed files with 271 additions and 261 deletions
File diff suppressed because it is too large
Load diff
|
@ -49,6 +49,8 @@ enum AudioListenerMode {
|
|||
CUSTOM
|
||||
};
|
||||
|
||||
const int SIZE_OF_MODE_ARRAY = 50;
|
||||
|
||||
Q_DECLARE_METATYPE(AudioListenerMode);
|
||||
|
||||
class MyAvatar : public Avatar {
|
||||
|
@ -1025,6 +1027,8 @@ public:
|
|||
|
||||
bool isReadyForPhysics() const;
|
||||
|
||||
bool withinThresholdOfStandingHeightMode(float newReading);
|
||||
|
||||
public slots:
|
||||
|
||||
/**jsdoc
|
||||
|
@ -1631,6 +1635,10 @@ private:
|
|||
bool _shouldLoadScripts { false };
|
||||
|
||||
bool _haveReceivedHeightLimitsFromDomain = { false };
|
||||
int _heightModeArray[SIZE_OF_MODE_ARRAY];
|
||||
int _currentMode = 0;
|
||||
bool _resetMode = false;
|
||||
|
||||
};
|
||||
|
||||
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);
|
||||
|
|
Loading…
Reference in a new issue