Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Snap Turn Provider in Alternate Axes?

Discussion in 'VR' started by michaelboyte, Mar 24, 2023.

  1. michaelboyte

    michaelboyte

    Joined:
    Mar 26, 2020
    Posts:
    1
    Is it possible to add a Snap Turn Provider component that rotates in either the x- or z-axes? I have tried looking at the C# code for the snap turn provider, but it's a little over my head and I don't see a reference to an axis of rotation.
     
  2. DarkSoulsBoss2

    DarkSoulsBoss2

    Unity Technologies

    Joined:
    Mar 24, 2023
    Posts:
    16
    The current Snap Turn Provider is only intended to perform rotations round the Up Axis of the xrOrigin. If the xrOrigin is rotated, then you could do snap turns along other axes. Depending on your use case, it may be easier to write your own component to perform snap rotations.