[1472] VRCPayerApi.GetPosition() is 0,0,0 for late joiners when accessed OnPlayerJoined()
tracked
DrSakuuCuddles
If you check for player position OnPlayerJoined, it is always 0,0,0 for people spawning in. Locally OnPlayerJoined the position is correctly at spawn.
Steps to reproduce:
- Make a UdonBehaviour that uses VRCPayerApi.GetPosition() in OnPlayerJoined()
- Observe its value is always 0,0,0 for late joining Remote users
Log In
StormRel
Merged in a post:
[884] Players show at origin after joining world
Lyuma
When joining a world, you see some other players appear right next to you when they might be far away. After seeing them, my reaction is to look around spawn for my friend or assume they are nearby but they might be across the map.... I also might start talking to them, so it is quite confusing.
I am unsure if it is origin or spawn. In some worlds they are the same so it's hard to tell. If it's world origin, the bug might not be apparent in all worlds.
Steps to reproduce:
- Launch one client into https://www.vrchat.com/home/launch?worldId=wrld_98dee37e-e0a2-4b4a-a545-7a8c96f9feb8 -- Use a normal size avatar.
- Walk forward from spawn.
- Launch another client into the same instance.
- repeat a few times if you miss it. To reproduce exactly my test, I used the shorter default avatar with the yellow hat (the angle might matter)
What to observe:
The client that joins later will see nobody else in the instance, then after a second, the other player will appear clipping inside, and then teleport far away.
What I expect: Ideally, the other client will not be visible until we know their position and have set their initial IK.
StormRel
tracked
DrSakuuCuddles
Still an issue in build 1472, if you check for player position OnPlayerJoined, it is always at 0,0,0. Locally when OnPlayerJoined the position is correctly at spawn.
Steps to reproduce:
- Make a UdonBehaviour that uses VRCPayerApi.GetPosition() in OnPlayerJoined()
- Observe its value is always 0,0,0 for Remote users
Ruuubick - Designer
Is this still the case in newer betas ?
owlboy
Ruuubick - Designer: It's still the case on Live.
owlboy
We saw this while testing 2018 content on Sunday.