Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Best Practice - Physics of mutliple objects with different owners

$
0
0
Dear Photon community,

I am working on a VR game and trying to get my head around how to handle physics in PUN. Here's what I did:

In my scene multiple objects are lying around. I have setup phyiscs with transformation syncronisation using PUN.

Whenever a player grabs an object, he becomes owner. The other objects that are lying around have the master player as owner as he instantiated them. This works fine for all objects that any player touches

Now: How would I deal with the issue that if Player 2 throws his object to the ones (lying on the ground) that are owned by Player 1? I assume I have to change ownership in the right moment, but when would this be?

Just to briefly illustrate:
https://imgur.com/a/BODC7

Thanks a lot for any input!

Viewing all articles
Browse latest Browse all 15755

Trending Articles