Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

[VRTK] [Multiplayer] Can't interact with object on client

Discussion in 'AR/VR (XR) Discussion' started by unity_Cn_9LZVSq85wBA, Jun 19, 2019.

  1. unity_Cn_9LZVSq85wBA

    unity_Cn_9LZVSq85wBA

    Joined:
    Apr 30, 2019
    Posts:
    5
    Hello everyone,
    I started develop a multiplayer VR game. For network I use Mirror package and for VR I use VRTK.

    What I want to do is : Run the test scene on 2 machines and 2 players can grab the cube and throw.

    In this test scene I have a cube with network identity and network transform.
    I also have a player prefab which is based on VRTK.

    My situation : Only the host player can grab the cube. When the host player throw the cube the client see the cube's position change, but the client player can't grab the cube.

    My question : What I need to do in order to allow the client player grab the cube ?
    In the main scene I want to have many objects like this cube, that is, objects that exist already in scene and aren't spawned dynamically by code.

    Thank you very much.
     
    Last edited: Jun 19, 2019
unityunity