* Removed MyAvatar.reset() access from JavaScript * Added HMD.centerUI() to JavaScript, which can be used to reset the 3D UI sphere around the current HMD orientation. * Added MyAvatar.clearIKJOintLimitHistory() which can be used to reset any remembered IK joint limit history. * Added MyAvatar.centerBody() which can be used to instantly re-orient the avatar's so that the hips and toes are facing the same direction as the current HMD orientation. away.js now uses the above new API's instead of MyAvatar.reset()
Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 13 files). Show all
Unified · Split
| @@ -135,3 +135,7 @@ void HMDScriptingInterface::unsuppressKeyboard() { · 134 unmodified lines | ||
| 135 | 135 | bool HMDScriptingInterface::isKeyboardVisible() { |
| 136 | 136 | return qApp->getActiveDisplayPlugin()->isKeyboardVisible(); |
| 137 | 137 | } |
| 138 | + | |
| 139 | +void HMDScriptingInterface::centerUI() { | |
| 140 | + QMetaObject::invokeMethod(qApp, "centerUI", Qt::QueuedConnection); | |
| 141 | +} | |