Skip to main content
New Participant
August 4, 2025

How to Prevent Physical Up/Down Head Movement from Affecting Camera Y Position in Meta SDK (Unity)

  • August 4, 2025
  • 2 replies
  • 175 views

Hi all,

I'm developing a VR experience using the Meta All-in-One SDK in Unity, and I want to restrict the camera's vertical movement caused by physical player movement (like crouching or standing up).

Right now, when the player physically moves their head up or down, the OVRCameraRig's Y position changes accordingly, which affects gameplay. For design reasons, I want the camera to stay fixed at a certain Y position (e.g., a seated or fixed-height experience), but still allow head rotation and horizontal movement (X/Z).

Here's what I'm trying to achieve:

 Maintain camera rotation (look around)
 Allow X/Z movement (if the user moves left/right or forward/back)
 Prevent Y-axis movement from real-world head height changes

Is there a recommended way to lock or ignore vertical head movement using Meta's SDK?

I’ve tried clamping the Y position manually in LateUpdate, and it works, but I’m wondering if there's a cleaner or SDK-level way to do this (e.g., a setting in OVRCameraRig, OVRManager, or elsewhere).

Any suggestions or best practices would be appreciated!

Thanks!

    This topic has been closed for replies.

    2 replies

    JeffNik
    Honored Contributor
    August 4, 2025

    Pretty confident you don't want to do that. If your head is doing something that isn't reflected in the camera movement, like moving or tilting your head up or down - you'll make your users sick instantly.

    RiverExplorer
    Honored Contributor
    August 4, 2025

    I think that your LateUpdate() method is the way to do it.

     

    RiverExplorer.US]@gmail.com https://RiverExplorer.games