Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

PUN Basics Tutorial - repositioning player after leaving the room doesn't work

$
0
0
Hi.
I think I've spotted an error when following the Basic PUN tutorial. I also verified that this problem exists when running the completed demo from Demos folder.

I'm starting two games, one in the Unity's window, one as an executable after building it. I join the same room, two players spawn. I move the player IN THE UNITY WINDOW to the edge of the arena. Now, when I leave the room from the executable game, the player in the Unity window is not repositioned to the (0,5,0) position above the arena and just falls down infinitely.
I first thought that it might be a problem with animator and root motion. However, what is really strange is that when I do it in a reverse manner, moving the player in the executable to the edge of the arena and leaving the room in the Unity window, it seems that the player is repositioned correctly, which leads me to the conclusion that it might be something with the position synchronization?

Thanks!

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>