Search Unity

steamVR camera collision

Discussion in 'AR/VR (XR) Discussion' started by Gnimmel, Nov 16, 2017.

  1. Gnimmel

    Gnimmel

    Joined:
    Apr 21, 2010
    Posts:
    358
    I have a game on the oculus store that I am trying to convert to SteamVR, but I'm having a problem with the collision.

    For the oculus I had the camera rig parented to a control object that had collision. I was able to reset the camera position on level load so the player always stood in the center of the collider and I added my own gardian system to warn when the player moved too far away. This means when the player tried to walk through a object, he collided with it, or rather the top object did and the camera couldn't move too far away from it so it looked correct.

    This all worked great on the oculus, but on SteamVR and Vive it's not as easy thanks to room scale.

    I couldn't find a way to reset the camera to the center which means the player could be standing a few meters away from the collider controlling the movment. In other words the collision would work, but the player can walk away from the collider so he'd collide with objects after walking through it.

    Is there a way to turn on collision with a steam VR camera?
     
    Fletcher-Studios likes this.