The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Networking rigid body object doesn't work well

2018-04-08 16:23:17


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?



2018-04-08 16:46:16

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!

Back to top