Set Z rotation according to Vector2
Hey all. Let's say I have a vector, for example Vector2(1, 0.5f) and I would like to set Z rotation of a Transform according to that vector. How can I achieve that? Thank you.
Comment
Answer by fonko · May 04, 2018 at 07:04 AM
where you able to find how? im faceing the same issue today, i have a vector2 for x and y. And want to use the angle between x and that vector to rotate my object around z axis