I
I
i__egor2022-01-30 17:54:15
Unity
i__egor, 2022-01-30 17:54:15

How to rotate an object by degrees correctly?

Why if you set the angles as go.transform.rotation = Quaterion.Euler (vector 3) then you give x, y, z one and the unit assigns others (sometimes the same and sometimes completely different), so I send new Vector3(160, - 30, 0) and the unit is set to 20, 150, 360. why is this happening? how to make it so that in the inspector it was the same as in the code in degrees

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question