Check hitTestCircleRect on rotated objects

Made a tile of rectangles and rotated 45 and hitTestCircleRect was messing up

image

Works not rotated

image

Probably has to do with distance measuring? Longer diagonally than otherwise would be.

1 Like

It is an equation... and perhaps the width it is using is the projection of the rotated square on the stage... but maybe there is a better way...