Avatars
How to make the remote avatars rotate to the opposite way of the local player avatar?
2 Replies
Hi @fgamez1020. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To make remote avatars rotate in the opposite direction of the local player avatar in NormalVR, you'll need to modify the
RealtimeAvatar
component or create a custom script to handle this behavior. However, the provided knowledge sources don't contain specific information about implementing this exact functionality.
The closest relevant information we have is about the RealtimeAvatar
component, which is responsible for synchronizing head and hand positions and states across the network RealtimeAvatar Documentation (https://normcore.io/documentation/realtime/xr/avatars#realtimeavatar).
To achieve the desired effect, you would likely need to:
1. Create a custom script that extends or works alongside RealtimeAvatar
.
2. In this script, detect whether the avatar is local or remote.
3. For remote avatars, modify the rotation calculation to be the opposite of the received data.
However, implementing this would require careful consideration of networking and synchronization issues. It's important to note that modifying avatar behavior in this way might lead to unexpected results in terms of user experience and interaction.
If you need to implement this specific behavior, you might want to consider modifying the RealtimeAvatar
scripts. As mentioned in the documentation:
RealtimeAvatar Modification (https://normcore.io/documentation/realtime/xr/avatars#modifying-realtimeavatar-scripts):
"Unity's UPM package manager will not let projects modify RealtimeAvatarManager or RealtimeAvatar, so if you would like to modify them (and we encourage you to do so), we recommend copying all ReatimeAvatar classes into your project under a new namespace. From there you will be able to make any changes required for your project."
Remember that any modifications to core avatar behavior should be thoroughly tested to ensure they don't negatively impact the multiplayer experience or cause synchronization issues.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@1053407831916822528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.