So I used to really like flight simulator shooter games, like Ace Combat or War Thunder. I thought I'd try to download some new ones on Steam, and they all sucked. I thought, I could totally program something better than this myself!
I can't though.
I just can't figure out the controls. I could do a more complicated control scheme where each axis is controlled by keyboard buttons, but I wanted to do a simple one like Dogfight 1942 where you plane basically just follows your mouse cursor. Here's a video of it:
I tried a few things, but nothing felt like the controls of the real game.
The closest thing was
mouse_pos = get_viewport().get_mouse_position()
rotate_x(-deg2rad(H_LOOK_SENS*(mouse_pos.y-get_viewport().size.y/2)))
rotate_y(-deg2rad(V_LOOK_SENS*(mouse_pos.x-get_viewport().size.x/2)))
But that gave really weird results when I moved the mouse into the corners of the screen, the plane started rolling.
Any thoughts?