Facepunch / sbox-issues

175 stars 12 forks source link

Cameras when looking almost directly up or down snap their pitch to either 90 or -90 degrees #3984

Closed Xenthio closed 1 year ago

Xenthio commented 1 year ago

Describe the bug

Cameras have this weird snapping behaviour, where if the pitch of a camera is almost 90 degrees, it'll snap it to the nearest 90.

To Reproduce

Go to any game, look directly up or down you can see the snap

Expected behavior

Camera shouldn't do this

Media/Files

https://github.com/sboxgame/issues/assets/28588188/0e6c1bd2-a73c-4caf-8045-c027094345ca

Additional context

No response

garrynewman commented 1 year ago

Could this be the Angles() fix @Metapyziks?

Metapyziks commented 1 year ago

Yep my bad, on it now