# rotateZ() not working as expected

**URL:** <https://discourse.processing.org/t/rotatez-not-working-as-expected/843>\
**Category:** Development\
**Created:** [June 10, 2018, 4:09pm UTC](https://discourse.processing.org/t/rotatez-not-working-as-expected/843 "2018-06-10T16:09:18Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 9, 2024, 4:18pm UTC](https://discourse.processing.org/t/rotatez-not-working-as-expected/843/13 "2024-06-09T16:18:52Z")

</div>

Correction to code in this topic:  
_[rotateZ() not working as expected - #3 by glv](https://discourse.processing.org/t/rotatez-not-working-as-expected/843/3)_

This is the correct order for my example:

```auto
rotateY(y); // Yaw 
rotateX(x); // Pitch
//rotateY(y); // Yaw 
rotateZ(z); // Roll

```

`:)`

---

_[View the full topic](https://discourse.processing.org/t/rotatez-not-working-as-expected/843)._
