Network synced "soccer ball"
Options
I'm playing around with the setup from the PUN tutorial. I wanted to add a "soccer ball" that the players can push around.
I simply dropped a sphere into one of the scenes. Then added the following components to the sphere: Rigidbody, PhotonView, PhotonRigidbody, and PhotonTranformView. I set the PhotonView to observe the Rigidbody & Transform. Then saved the scene.
Unforunately, when testing, the physics are not synced. In addition half the time, one player can push the ball, and the other cannot move it at all.
Here is the Inspector for the sphere:
https://1drv.ms/u/s!Ai61RlKtvfxFgrZkReZAfoMXg-6DZA
Any advice helps, thanks!
I simply dropped a sphere into one of the scenes. Then added the following components to the sphere: Rigidbody, PhotonView, PhotonRigidbody, and PhotonTranformView. I set the PhotonView to observe the Rigidbody & Transform. Then saved the scene.
Unforunately, when testing, the physics are not synced. In addition half the time, one player can push the ball, and the other cannot move it at all.
Here is the Inspector for the sphere:
https://1drv.ms/u/s!Ai61RlKtvfxFgrZkReZAfoMXg-6DZA
Any advice helps, thanks!
0
Comments
-
SOLVED:
Turns out I wasn't able to set an Observe option in PhotonView component. (The drop menu was greyed out)
So I tried removing all the components and then added them back, this made 'Observe Option' interact-able. *shrug*
Oh well, it worked.0