mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 14:53:01 +02:00
Add MyAvatar::isSeated API method
This commit is contained in:
parent
5d20baa4d0
commit
3a9c829c95
1 changed files with 14 additions and 6 deletions
|
@ -272,12 +272,12 @@ class MyAvatar : public Avatar {
|
||||||
* the value.</p>
|
* the value.</p>
|
||||||
* @property {number} analogPlusSprintSpeed - The sprint (run) speed of your avatar for the "AnalogPlus" control scheme.
|
* @property {number} analogPlusSprintSpeed - The sprint (run) speed of your avatar for the "AnalogPlus" control scheme.
|
||||||
* @property {MyAvatar.SitStandModelType} userRecenterModel - Controls avatar leaning and recentering behavior.
|
* @property {MyAvatar.SitStandModelType} userRecenterModel - Controls avatar leaning and recentering behavior.
|
||||||
* @property {number} isInSittingState - <code>true</code> if your avatar is sitting (avatar leaning is disabled,
|
* @property {number} isInSittingState - <code>true</code> if, while in HMD, your avatar is determined to be sitting
|
||||||
* recenntering is enabled), <code>false</code> if it is standing (avatar leaning is enabled, and avatar recenters if it
|
* (avatar leaning is disabled, recenntering is enabled), <code>false</code> if your avatar is determined to be standing
|
||||||
* leans too far). If <code>userRecenterModel == 2</code> (i.e., auto) the property value automatically updates as the
|
* (avatar leaning is enabled, and avatar recenters if it leans too far). If <code>userRecenterModel == 2</code>
|
||||||
* user sits or stands, unless <code>isSitStandStateLocked == true</code>. Setting the property value overrides the
|
* (i.e., auto) the property value automatically updates as the user sits or stands, unless
|
||||||
* current siting / standing state, which is updated when the user next sits or stands unless
|
* <code>isSitStandStateLocked == true</code>. Setting the property value overrides the current siting / standing state,
|
||||||
* <code>isSitStandStateLocked == true</code>.
|
* which is updated when the user next sits or stands unless <code>isSitStandStateLocked == true</code>.
|
||||||
* @property {boolean} isSitStandStateLocked - <code>true</code> to lock the avatar sitting/standing state, i.e., use this
|
* @property {boolean} isSitStandStateLocked - <code>true</code> to lock the avatar sitting/standing state, i.e., use this
|
||||||
* to disable automatically changing state.
|
* to disable automatically changing state.
|
||||||
* @property {boolean} allowTeleporting - <code>true</code> if teleporting is enabled in the Interface settings,
|
* @property {boolean} allowTeleporting - <code>true</code> if teleporting is enabled in the Interface settings,
|
||||||
|
@ -1890,6 +1890,14 @@ public:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE void endSit(const glm::vec3& position, const glm::quat& rotation);
|
Q_INVOKABLE void endSit(const glm::vec3& position, const glm::quat& rotation);
|
||||||
|
|
||||||
|
/**jsdoc
|
||||||
|
* Gets whether the avatar is in a seated pose. The seated pose is set by calling the
|
||||||
|
* MyAvatar::beginSit method.
|
||||||
|
* @function MyAvatar.isSeated
|
||||||
|
* @returns {boolean} <code>true</code> if the avatar is in a seated pose.
|
||||||
|
*/
|
||||||
|
Q_INVOKABLE bool isSeated() { return _characterController.getSeated(); }
|
||||||
|
|
||||||
int getOverrideJointCount() const;
|
int getOverrideJointCount() const;
|
||||||
bool getFlowActive() const;
|
bool getFlowActive() const;
|
||||||
bool getNetworkGraphActive() const;
|
bool getNetworkGraphActive() const;
|
||||||
|
|
Loading…
Reference in a new issue