History

fix for pushing avatar into floor when exiting away mode.

* 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()

Anthony J. Thibault committed 10 years ago

Commit 837b19e1 parent 866ba2f13 files · +89 −6Browse files

Showing the changes to interface/src/scripting/HMDScriptingInterface.cpp (1 of 13 files). Show all

Unified · Split

interface/src/scripting/HMDScriptingInterface.cpp+4−0
@@ -135,3 +135,7 @@ void HMDScriptingInterface::unsuppressKeyboard() { · 134 unmodified lines
135bool HMDScriptingInterface::isKeyboardVisible() {135bool HMDScriptingInterface::isKeyboardVisible() {
136 return qApp->getActiveDisplayPlugin()->isKeyboardVisible();136 return qApp->getActiveDisplayPlugin()->isKeyboardVisible();
137}137}
138
139void HMDScriptingInterface::centerUI() {
140 QMetaObject::invokeMethod(qApp, "centerUI", Qt::QueuedConnection);
141}