# Collision shape after rotate

**URL:** <https://discourse.processing.org/t/collision-shape-after-rotate/23426>\
**Category:** Coding Questions\
**Created:** [August 22, 2020, 2:11pm UTC](https://discourse.processing.org/t/collision-shape-after-rotate/23426 "2020-08-22T14:11:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoName](https://avatars.discourse-cdn.com/v4/letter/n/58f4c7/32.png) [@NoName](https://discourse.processing.org/u/NoName)\
**Post date:** [August 22, 2020, 2:11pm UTC](https://discourse.processing.org/t/collision-shape-after-rotate/23426/1 "2020-08-22T14:11:38Z")

</div>

Please explain to me how you can check the collision of rectangular shapes after they have been rotated.

Question number 2.  
How to correctly get the vertex of the shape after rotation? I have after getVertex() a point before rotation is obtained.

---

<div class="post-metadata">

**Author:** ![Hyperion65](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hyperion65/32/10569_2.png) [@Hyperion65](https://discourse.processing.org/u/Hyperion65)\
**Post date:** [August 26, 2020, 8:29pm UTC](https://discourse.processing.org/t/collision-shape-after-rotate/23426/2 "2020-08-26T20:29:19Z")

</div>

Hello, I guess using screenX() and screenY() might help.  
Here is a somewhat long example: [http://jeffreythompson.org/collision-detection/matrix-transformations.php](http://jeffreythompson.org/collision-detection/matrix-transformations.php)
