[enter image description here][1]i’m trying to include a ping pong minigame in my VR multiplayer app in UNITY using PUN 2,
but i’m having problems with the syncronization of the ball, in fact only the OWNER of the PUN room can se the ball moving smooth, the others can see the ball lagging, so the game is unplayable.
I’v tried to change the OWNER when the ball is hitted but the result is not that good, so i want to sync the ball for everyone in a smooth way.
I will try to share you the but is in ITALIAN so it will be taugh to uderstand, i’m sorry.
Which is the best way to sync a ball? I guess the problem is that the ball react just too the racket gravity.
THE BALL OBJECT has this for the SYNC
Photon Tranofrm View Classic
Photon View
The script of the racket when it the ball does this
-
Make the controller Vibrate
-
Direct the ball to the other racket (aimTarget)
-
Set the velocity and the SyncronizedValues for the Photon tranform View Classic Component
Scirpt ball
which is the best way to sync a ball in multyplatey using PUN2?
Everysimo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.