mirror of
https://github.com/overte-org/overte.git
synced 2025-07-28 17:03:45 +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
|
CUSTOM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const int SIZE_OF_MODE_ARRAY = 50;
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(AudioListenerMode);
|
Q_DECLARE_METATYPE(AudioListenerMode);
|
||||||
|
|
||||||
class MyAvatar : public Avatar {
|
class MyAvatar : public Avatar {
|
||||||
|
@ -1025,6 +1027,8 @@ public:
|
||||||
|
|
||||||
bool isReadyForPhysics() const;
|
bool isReadyForPhysics() const;
|
||||||
|
|
||||||
|
bool withinThresholdOfStandingHeightMode(float newReading);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
|
@ -1631,6 +1635,10 @@ private:
|
||||||
bool _shouldLoadScripts { false };
|
bool _shouldLoadScripts { false };
|
||||||
|
|
||||||
bool _haveReceivedHeightLimitsFromDomain = { false };
|
bool _haveReceivedHeightLimitsFromDomain = { false };
|
||||||
|
int _heightModeArray[SIZE_OF_MODE_ARRAY];
|
||||||
|
int _currentMode = 0;
|
||||||
|
bool _resetMode = false;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);
|
QScriptValue audioListenModeToScriptValue(QScriptEngine* engine, const AudioListenerMode& audioListenerMode);
|
||||||
|
|
Loading…
Reference in a new issue