Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug VR Oculus: Player Camera stuttering while moving upwards on a Platform

Discussion in 'VR' started by richidenn, Feb 28, 2023.

  1. richidenn

    richidenn

    Joined:
    Jan 25, 2017
    Posts:
    3
    Hey i programmed an elevator but when the player is standing inside while its moving the camera is shaking. looks like it´s refreshing gravity somehow slow or something.

    Please see the gif attached. Any Ideas how to fix that?

    I used VR Builder for the VR implementation.

    Thanks in advanced
     

    Attached Files:

  2. Deltigre

    Deltigre

    Unity Technologies

    Joined:
    Sep 13, 2022
    Posts:
    36
    This isn't so much a bug but a side effect of relying on physics collision to update the player position, happens in many games that don't take it into account. You might try looking at the bottom of this tutorial: https://addam-davis1989.medium.com/creating-an-elevator-movement-in-unity-a486fc9309ba, which temporarily makes the elevator the player parent so that it's the animation position instead of collision updating their position.
     
  3. richidenn

    richidenn

    Joined:
    Jan 25, 2017
    Posts:
    3
    Awesome thank you I will try it later :)
     
  4. richidenn

    richidenn

    Joined:
    Jan 25, 2017
    Posts:
    3
    Thanks it worked :)
     
    Deltigre likes this.