Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice

Create Player for HTC Vive

Discussion in 'VR' started by nuramieramohdnoor, Sep 9, 2019.

  1. nuramieramohdnoor

    nuramieramohdnoor

    Joined:
    Jun 13, 2019
    Posts:
    5
    Hello, I am developing games which need to use htc vive. However, I have a problem when creating player for my games. Have any one ever create games for htc vive??
     
  2. nuramieramohdnoor

    nuramieramohdnoor

    Joined:
    Jun 13, 2019
    Posts:
    5
    there is some tutorial that i have watch which they use player from steam vr and also from camera rig. For my games, it is an multiplayer games and others need to see the other player.
     
  3. Bonkahe

    Bonkahe

    Joined:
    Jul 11, 2013
    Posts:
    14
    The way I did it for multiplayer is this, I use a network transform for the player, and child network transforms for the hands and head (google how to properly use these), then I made a script to check "!NetworkIdentity.isLocalPlayer" (use the network identity on the player prefab as the network identity in that) and if the current object is NOT the local player, I disable everything having to do with steamvr, and enable on the transform of the controllers and head, a visual representation of the players hands and head, this allows the child transform script to handle updates of locations without having to change anything, but makes the other players look like, well players. There is a lot of work ahead of you, but that should give you the idea.
     
  4. nuramieramohdnoor

    nuramieramohdnoor

    Joined:
    Jun 13, 2019
    Posts:
    5
    is the network transform and child network transform only work with unet? because now i am working with Photon server.