# Rotate a geometry

**URL:** <https://phaser.discourse.group/t/rotate-a-geometry/13249>\
**Category:** Phaser 3\
**Created:** [May 14, 2023, 7:50pm UTC](https://phaser.discourse.group/t/rotate-a-geometry/13249 "2023-05-14T19:50:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kraftwer1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/kraftwer1/32/7539_2.png) [@kraftwer1](https://phaser.discourse.group/u/kraftwer1)\
**Post date:** [May 14, 2023, 7:50pm UTC](https://phaser.discourse.group/t/rotate-a-geometry/13249/1 "2023-05-14T19:50:45Z")

</div>

Is there an easy way to rotate a geometry?

Specifically, I’m looking for rotating a polygon. Something like `Phaser.Geom.Polygon.Rotate()` would be very helpful.

Rotating my game object polygon works fine, but the .geom resides in its original form (which is unrotated).

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [May 15, 2023, 3:16pm UTC](https://phaser.discourse.group/t/rotate-a-geometry/13249/2 "2023-05-15T15:16:36Z")

</div>

I think you have to iterate the points and rotate around an origin. There may be a centroid method.
