Collision shape after rotate

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.

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

2 Likes