Closed SaadBazaz closed 2 months ago
For now, the dev is separating the vector into independent states, like how they've done with posX, posY, posZ.
What do we need to do?
Vector3
---> Are they all receiving different values or is the same value being broadcasted? @momintlh Some thoughts of another developer:
maybe it is something related to unity converting the code to javascript. Since in c# you need to declare the type of a parameter, and in javascript you don't, you end up having different methods with the same signature. Maybe when you use the method with an object parameter, the javascript side does not know the method you intended to use and chooses another one. In that case, maybe changing the order of the methods can fix the problem. If it doesn't, you should have a single method and check types inside of it. But this is just a hypothesis. I'm not sure about it.
Link: https://discord.com/channels/997752993598419044/1128151935669764096/1233359053162545152
What happened?
ive been having an issue trying to update a player's rotation in Unity with playroom; it's letting me do it to the player's position but not the rotation instead, it is just making it so that on each player's screen, the car's rotate all in the same direction, even though the position is just fine Does anyone have any useful tips for handling setting and getting states in Unity to prevent issues like this?
Screen recording
and the game looks like this
as you can see, the positions of the other cars are not changed, but the rotation is affected for some reason (also on the other player's screens, the cars are not being rotated) it's really been stumping me, and i feel like I'm just missing something fundamental about how playroom works
Version
Unknown
What is your environment?
No response
Link to original discussion
https://discord.com/channels/997752993598419044/1128151935669764096/1233255254485766267 https://discord.com/channels/997752993598419044/1128151935669764096/1236637869607751731
Relevant log output
Here's the relevant section of the code: