# Two questions about rotating

**URL:** <https://forum.defold.com/t/two-questions-about-rotating/19687>\
**Category:** Questions\
**Created:** [May 7, 2018, 8:58pm UTC](https://forum.defold.com/t/two-questions-about-rotating/19687 "2018-05-07T20:58:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [May 7, 2018, 8:58pm UTC](https://forum.defold.com/t/two-questions-about-rotating/19687/1 "2018-05-07T20:58:48Z")

</div>

1. Is there some secret reason that means sprites can’t be directly rotated? I am curious.
2. Could we change the word “rotation” in the collection editor to “rotation (euler)”, if that is what it is? It’s confusing, for me at least, that “rotation” in scripts is not the same as rotation in the collection editor.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 8, 2018, 5:44am UTC](https://forum.defold.com/t/two-questions-about-rotating/19687/2 "2018-05-08T05:44:18Z")

</div>

> [@88.josh](#):
>
> Is there some secret reason that means sprites can’t be directly rotated?

I don’t know about secret, but there’s probably a reason. One thing worth noting is that sprites, spine models and particle effect components can be rotated in the editor, but at runtime none of them can have their rotation modified, with less than a rotation of the entire game object. Why it is like that is something for @sven, @Johan_Beck-Noren or @Mathias_Westerdahl to answer.

> [@88.josh](#):
>
> Could we change the word “rotation” in the collection editor to “rotation (euler)”, if that is what it is?

The rotation fields in the Properties panel is always rotation around the three axis expressed in degrees. It wouldn’t make much sense to use radians or let you enter the values expressed as quaternion rotations as none of those are as easy to quickly type out (well maybe radians are).

---

<div class="post-metadata">

**Author:** ![88.josh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/88.josh/32/20137_2.png) [@88.josh](https://forum.defold.com/u/88.josh)\
**Post date:** [May 8, 2018, 7:01am UTC](https://forum.defold.com/t/two-questions-about-rotating/19687/3 "2018-05-08T07:01:15Z")

</div>

You’re right, the thing I find confusing is that to achieve the same rotation in the script, you have to animate a property called Euler. animating “rotation”, has some other effect (possibly called quaternions??). The properties panel makes sense, the script is the strange part!

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [May 8, 2018, 7:14am UTC](https://forum.defold.com/t/two-questions-about-rotating/19687/4 "2018-05-08T07:14:53Z")

</div>

IIRC the main reason was to not have a separate tree structure where all components have their own transform. Game objects solve this problem. They are very light weight, and hold a transform, as well as the scene graph.

---

<div class="post-metadata">

**Author:** ![sicher](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/sicher/32/8_2.png) [@sicher](https://forum.defold.com/u/sicher)\
**Post date:** [May 8, 2018, 7:18am UTC](https://forum.defold.com/t/two-questions-about-rotating/19687/5 "2018-05-08T07:18:55Z")

</div>

There are severe issues with euler rotations that quaternions solve nicely, that is why pretty much every (3D) game uses them for rotation. See [https://www.youtube.com/watch?v=N5PDboNJwks](https://www.youtube.com/watch?v=N5PDboNJwks)
