Search Unity

  1. Unity 2019.1 is now released.
    Dismiss Notice

Multiplayer AR Synchronize worldspace

Discussion in 'ARCore' started by Abgehter, Jun 7, 2018.

  1. Abgehter

    Abgehter

    Joined:
    Jan 28, 2018
    Posts:
    1
    Hi,

    for studies we invent a jenga-AR-Multiplayer. Singleplayer is allready working fine and a "windows-simulation" with multiplayer also works.

    But when bringing it together i have a problem.
    Here is the szenario:

    Player-H (host): starts game, finds a plane and starts network
    Player-C (client): starts the game, finds a plane and joins a network

    So now what should happen:
    (1) Tower is placed at (0,0,0) and both players where repositioned according to their position-delta to the set anchor.

    or

    (2) Tower is placed at anchor-H and the position of player-C is recalculated.

    Is there a way to manage this (transforming the world or the transform of a tracked-Posed-Driver-controlled object?

    To make it clear, its not about having the tower at the exactly real world position but on the position the player chooses by taping on a detected plane.
     
  2. UnityEngineer_India

    UnityEngineer_India

    Joined:
    Jan 25, 2012
    Posts:
    22
    If the Player H and Player C are next to each other in the same geo location , then you should try ARCore google cloud anchors.