Hi,
I have a 2D gameObject (Vector2 positions, constantly moving up in y-axis). Now I want to turn it in a particular direction, which I got as another Vector2. How do I turn the y-axis in the new direction?
Transform.LookAt and Quaternion.LookRotation doesn’t seem to work, as the set the z-axis to look in this direction, which messes everything up. Also they expect Vector3 as input.
Any advice? (using javascript)