MasterOX 水
MasterOX 水5mo ago

player teleport

dumb question but if i want to teleport a player to a specific location and have it sync to everyone, should i update the position of the xr origin (im using xr interaction toolkit) or the vr player?
3 Replies
kapa.ai
kapa.ai5mo ago
Hi @MasterOX 水. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To teleport a player and have it sync to everyone in NormalVR, you should update the position of the player's avatar, not the XR origin. The avatar's position is what gets synchronized across the network. In NormalVR, the RealtimeAvatar component is responsible for synchronizing the head and hands positions and active states. All avatar prefabs that are used with RealtimeAvatarManager need to include a RealtimeAvatar component on the root of the prefab. When it's first instantiated, RealtimeAvatar is given a set of transforms to track for the root of the prefab, the head, and the hands from RealtimeAvatarManager's localPlayer field, which is set in the editor inspector. If you are using a plugin like VRIK for IK movement on avatars and your avatar setup uses a camera rig, you’ll need to wire it up to RealtimeAvatarManager’s Root, Head, and Hand transform inputs. This will ensure that your RealtimeAvatar instance matches the transforms of your camera rig instead of using the default Unity XR APIs. Here is the relevant documentation: - RealtimeAvatar (https://normcore.io/documentation/realtime/xr/avatars#realtimeavatar) - VRIK plugin for IK movement (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) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai5mo ago
<@758040514678489279> kapa.ai is still learning and improving, please let us know how it did by reacting below
MasterOX 水
MasterOX 水OP5mo ago
got it

Did you find this page helpful?