What are these angles, what is needed in a unit? Briefly explain please.
Why use them if there is transform.Rotate ?
What are these angles, what is needed in a unit? Briefly explain please.
Why use them if there is transform.Rotate ?
Transform.Rotate rotates the transform object and does it instantly, changing the object.
Quaternion.Euler creates a Quarternion, which stores information only about orientation / rotation in space. It does not apply rotation to the object instantly.
If you only need information about the rotation: you want to cache it, compare it with others, combine them, etc., then it’s better to use Quaternion.Euler so as not to spam a bunch of temporary objects.
Source: https://ru.stackoverflow.com/questions/876106/
All Articles