Page 1 of 1
Grab Objects
Posted: Thu Feb 07, 2019 1:50 pm
by R4microds
As the title implies, a simple grab/pickup objects with rigid bodies on OnMouseDown / Keypress. Drag / Rotate / Drop.
This works for the host with Authority but needs to be re-worked for clients:
https://gdl.space/wubenoyoti.cpp
Re: Grab Objects
Posted: Sun Feb 10, 2019 11:01 pm
by Lovatto
Only the owner of the object (in this case the Master Client) can write and send the information, others just received it,
in order to others can write too, they need request the ownership of the photonview, in photon you use:
you call this when the player grab the object, so you inform that this player will start writing in this object.
Re: Grab Objects
Posted: Tue Feb 19, 2019 3:51 pm
by R4microds
Works great!
https://youtu.be/BHSaow5nlJU
Thanks Lovatto, another solid addition to this amazing asset!