Networking rigid body object doesn't work well

Options
HI!

I'm making an multiplayer VR game with PUN, and I'm trying to create some objects that can be picked up and moved around by any players. However, the results are quite strange..

The positions of the same object are not consistent across clients. As well as this, the objects seem to kind of randomly float around the scene in a strange way..

Here are the settings I am using:


They are VRTK interactable objects. I have a script that I made that changes the photon view owner of the objects when they are grabbed, and this seems to work. So I'm not sure what else I need to change to get it to work?

Thanks!

Comments

  • shadowsora
    Options
    Sorry, I always post and then figure it out quite quickly! Lol

    Anyway. The issue was that, because the rigidbody is enabled on all clients, they were all doing the physics when really only the owner should.

    Now I enable/disable physics (rigidbody.isKinematic == true to disable) so that only the owner has physics enabled, and it seems to work!