# "Mirroring" PShape objects (translation / rotation issue)

**URL:** <https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099>\
**Category:** Coding Questions\
**Created:** [January 2, 2019, 12:58pm UTC](https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099 "2019-01-02T12:58:16Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![solub](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/solub/32/333_2.png) [@solub](https://discourse.processing.org/u/solub)\
**Post date:** [January 6, 2019, 5:55pm UTC](https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099/8 "2019-01-06T17:55:17Z")

</div>

Finally found a workaround

**Fixes** :

- the vertices order of the `QUADS` was incorrect
- the computation of the pivot height was missing
- the translation based on that height needs to be operated before **and** after the rotation (not sure to understand the reason)
- the rotation angle has to be multiplied by -1 (negative angle) in order to change the bending side

 ![](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/2df31d8cb0e9091f6a5455a705985f6d4048b1a5.gif)

---

_[View the full topic](https://discourse.processing.org/t/mirroring-pshape-objects-translation-rotation-issue/7099)._
