Search Unity

fps camera tilting

Discussion in 'Editor & General Support' started by Sulemanalimalik, Dec 25, 2018.

  1. Sulemanalimalik

    Sulemanalimalik

    Joined:
    Jul 26, 2017
    Posts:
    79
    How to keep my FPS camera from tilting and messing up? whenever I try looking up and then sideways, it tilts, and sometimes it can turn upside down. How can I fix this?
    Screenshot_9.png
     
    Last edited: Dec 25, 2018
  2. knobblez

    knobblez

    Joined:
    Nov 26, 2017
    Posts:
    223
    Go to your Rigidbody. At the bottom of the component is 'Constraints' and a little arrow. Click the little arrow and try different toggles under 'Freeze Rotation'.
     
  3. Sulemanalimalik

    Sulemanalimalik

    Joined:
    Jul 26, 2017
    Posts:
    79
    tried this and others too but still not solved
    Screenshot_11.png
     
  4. Please do not open threads everywhere on the forums with the same issue. It's against the rules.
     
    JeffDUnity3D and Schneider21 like this.
  5. Sulemanalimalik

    Sulemanalimalik

    Joined:
    Jul 26, 2017
    Posts:
    79
    okay sorry
     
    Lurking-Ninja likes this.
  6. knobblez

    knobblez

    Joined:
    Nov 26, 2017
    Posts:
    223
    I created a cube GO and made the Main Camera a child of it. If I rotate the Z axis it tilts the camera like yours. Freezing the rotation on the Z axis works for me.

    Posting code helps find answers.