Edited for better physics example, and for total control.
I just used 1 variable to change the way the ship moved.