I have a 2D vector (with only X and Y), and my engine only supports orientation through Quaternions.
How do I translate a 2D vector to a quaternion?
The X and Y represent the direction (so X = 0 and Y=1 means going forward, X=0.707 and Y=0.707 means rotate 45 degree, etc).