New to the forums? Click here to read the "How To" Guide.

Developer? Click here to go to the Developer Forums.

(Quest) Problem updating position of grabbable GameObject using Photon2 and Unity3D

vrz_devvrz_dev Posts: 26
Brain Burst

I'm trying to add Photon2 support to a simple Oculus starter scene (cubes on a table). I was able to run the Avatar synchronization code described here on top of my basic Photon2 setup.

This is the current sequence:

  • Player 1 ( P1 - the one using Quest) creates the room and joins it

  • Player 2 (P2 - the one using Unity Player) joins the room

  • Player 1 grabs a cube and moves it around

  • P2 sees the cube moving normally if P1 just drags it horizontally, but if he tries to lift it from the table the cube seems acting crazy from P2 point of view.

It looks like the cube fights with gravity but I'm not totally sure what is going on. You can see an example in this video where there is an alternation between horizontal drag and lifting from the table:

If I disable gravity on the cube it seems working fine (although the interpolation a bit slow compared to how P1 is moving the object):

The point is that I cannot have cubes flying around the scene :)

Did anybody incur in such a problem?

Sign In or Register to comment.