So in Minecraft, you have the elytra. When you look up, the character moves up. When you look down, the character moves down. The speed you move forward depends on the angle you are moving. I want to do this in 2D.
Let's say that the controls are the following: it's like Learn to Fly where you press left to rotate counter-clockwise and right to rotate clockwise.
I am using a CharacterBody2D in Godot 4. What do I set the velocity to to make this work? I can't just rotate the velocity because the magnitude velocity depends on the angle the player is pointing.