Answer the question
In order to leave comments, you need to log in
How to rotate a character without using a conditional operator?
Is it possible to rotate a sprite in the direction of movement not through a conditional operator, but through mathematics?
I thought of the option below, but it doesn't work.
transform.eulerAngles = new Vector3(0, (transform.rotation.y + 180f) % 360f, 0);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question