Howdy folks. I’ve run into a bit of an issue using oculus. I don’t know how to stop what I think is a camera penetration issue when up against objects. I can’t walk through the objects, I can just see into them. I’ve tried setting the near clipping plane as low as it will go, but it’s apparently not working. The odd thing is my player camera works fine if I turn VR off via the player settings. Any advice?
Most likely the position of the HMD is moving the camera position so much that it penetrates other objects. Considerations:
- When VR is enabled, then the local Transform of your Camera will be controlled by the HMD position and orientation. You may need to put your camera in a child GameObject if the position depends on another object.
- You may call InputTracking.Recenter at the start of your app to ensure the view begins at the current HMD position. Also, it’s a good idea to have a hotkey calling Recenter at any time.