Opening universal menu teleports arms to floor
Currently using Normcore to sync VR avatars. When I press the universal button (whether in a Quest build or via Link), the arms of the avatar teleports to the floor. Does anyone know how to prevent this, or at least how to detect that the menu has been opened?
4 Replies
Hi @kyle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
This issue with avatar arms teleporting to the floor when opening the universal menu is related to how Normcore handles avatar tracking and Meta's XR platform.
When the universal menu is opened on Quest devices, the tracking data for the controllers is temporarily interrupted, which can cause Normcore's
RealtimeAvatar
component to receive incorrect position data for the hands.
Based on the knowledge sources, here are a few approaches to address this issue:
1. Check Meta Avatar integration: If you're using Meta Avatars with Normcore, you might want to review the Meta Avatars customization guide to ensure proper setup. The LocomotionLegAnimationDriver
component included in the default NormalMetaLocalAvatar
prefab handles position and rotation changes, and you might need to adjust its settings Meta Avatars Customization.
2. Detect menu opening: Unfortunately, the knowledge sources don't provide a direct method to detect when the universal menu is opened. You might need to look into the Meta XR Platform SDK for this functionality.
3. Custom avatar implementation: If you're experiencing issues with the default avatar implementation, you could consider modifying the RealtimeAvatar scripts. As mentioned in the documentation, "The source code to RealtimeAvatarManager and RealtimeAvatar are included with Normcore and serve as examples of how to implement an avatar management system in Normcore." You can copy these classes into your project under a new namespace to make custom modifications Avatars.
4. Check for Meta platform initialization: Make sure you've properly initialized the Meta platform at runtime, as mentioned in the Meta Platform Prerequisites. Missing initialization can lead to tracking issues Meta Platform Prerequisites.
If none of these solutions work, I'd recommend reaching out to the Normcore community on their Discord for more specific assistance with this issue.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@401595391549898754> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
use OnApplicationPause and OnApplicationFocus
thanks! I ended up setting tracking origin on the meta camera rig to eyes rather than floor, and it's better