Answer the question
In order to leave comments, you need to log in
How to stop the rotation of an object?
I have this line of code
this.transform.RotateAround(new Vector3(positionX,positionY,positionZ), new Vector3(0f, 0f, 1f), 360f * Time.deltaTime);
which rotates the object relative to a given point, with a certain speed. And I need the line to rotate by a certain number of degrees. (90)
if (transform.eulerAngles.z == 90) { code }
This option does not work
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