Search Unity

AR multiplayer position sync using ARKit ARcore

Discussion in 'AR/VR (XR) Discussion' started by NickBullseye, Apr 6, 2018.

  1. NickBullseye

    NickBullseye

    Joined:
    Nov 30, 2016
    Posts:
    10
    Hello!

    My question is: Is there any good way to do synchronization of players position in AR?

    The one way I know is to find aproximately the same plane from one perspective (kinda like ar tanks networking example made by Unity). Then player gameobject just mimics the position of device camera. It works alright, but still strongly depends on users finding similar planes.

    Can it be done better. Maybe utilizing markers?

    Hope for some help. Appreciate any information. Thanks in Advance.
     
    rahuxx likes this.
  2. rahuxx

    rahuxx

    Joined:
    May 8, 2009
    Posts:
    533
    Looking something similar so definitely want a way to achieve this.
     
  3. jtbentley

    jtbentley

    Joined:
    Jun 30, 2009
    Posts:
    1,394
    You can rotate your view based on the north-heading of the device, but this isn't going to be super accurate. You're best off having a simple drag left/right on rotate your placement marker before the users begin the game.. The accuracy of world rotation relative to each other is less important than you might think, so some inaccuracy here is actually going going to impede gameplay at all.
     
  4. NickBullseye

    NickBullseye

    Joined:
    Nov 30, 2016
    Posts:
    10
    Thank you. Nice advice there! Will definetely check out the marker way.