Search Unity

VR Camera offset, inaccurate collision position

Discussion in 'AR/VR (XR) Discussion' started by UniversalGesture, Jul 10, 2017.

  1. UniversalGesture

    UniversalGesture

    Joined:
    May 29, 2017
    Posts:
    125
    My camera is offset from the rigidbody controller when moving around the real life room. This causes problems because my camera does not handle collisions or have gravity applied to it. How can I make my rigidbody stay where my camera is so that the position for the collision is accurate and not offset? (Oculus)

    Thanks in advance
     
  2. UniversalGesture

    UniversalGesture

    Joined:
    May 29, 2017
    Posts:
    125
  3. Dubada01

    Dubada01

    Joined:
    May 29, 2017
    Posts:
    10
    The VRTK asset from the unity store is a pretty robust library of scripts for VR implementation. Part of which is a collider that changes height with the position of the CameraRig. You should check it out.