Search Unity

how to flip x axis for rotation on gameobject

Discussion in 'Physics' started by DoggyBoggy, Jun 2, 2020.

  1. DoggyBoggy

    DoggyBoggy

    Joined:
    Jan 19, 2018
    Posts:
    20
    So I have a gyroscope constantly feeding values into unity to update a gameobjects rotation, only problem is that the sensors input of +x is unity's version of -x.

    Its giving me the values in forms of quaternions so I cant edit the direct values there unlike flipping the yaw in yaw pitch and roll euler angles, and since the values are constantly updating I cant make the x angle negative. I tried re-orienting the gameobject but when the x gets un-flipped then the y gets flipped instead. Only solution I could think of is flipping the x-axis in unity, but I dont know how to do that. Is this possible? And if not what else can I do?

    Any input is appreciated. Thanks! =)