character controller

if i have an xrorigin rig that moves with a character controller and if i disable and re-enable the controller will the avatar model lose track of it
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @Lost Wizard Corp.. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- If you are using a character controller to move your XR rig and you disable and re-enable it, the avatar model should not lose track of it as long as the avatar is properly set up. In NormalVR, the avatar setup should be wired up to the RealtimeAvatarManager's Root, Head, and Hand transform inputs. This ensures that your RealtimeAvatar instance matches the transforms of your XR rig instead of using the default Unity XR APIs [source (https://normcore.io/documentation/realtime/common-questions#im-using-a-vrik-plugin-for-ik-movement-on-avatars-when-i-teleport-or-move-my-camera-rig-the-rig-moves-but-my-avatar-doesnt-whats-going-on)]. However, if you are experiencing issues, it might be due to the way your avatar is set up. All avatar prefabs that are used with RealtimeAvatarManager need to include a RealtimeAvatar component on the root of the prefab. The RealtimeAvatar component is responsible for synchronizing the head + hands positions and active states [source (https://normcore.io/documentation/realtime/xr/avatars#realtimeavatar)]. If you are still having issues, you might want to check if the root RealtimeView is set to destroyWhenOwnerLeaves by default. If you change this value, or if you clear the owner of the avatar itself, then it will not be cleaned up properly by the server [source (https://normcore.io/documentation/realtime/common-questions#why-doesnt-my-avatar-disappear-on-remote-clients-when-i-disconnect)]. If you are creating a multiplayer game, you might also want to check out the guide on creating a player controller in NormalVR, which includes information on how to make it multiplayer [source (https://normcore.io/documentation/guides/creating-a-player-controller#making-it-multiplayer)]. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@1220362612794069042> kapa.ai is still learning and improving, please let us know how it did by reacting below