How to detect when rotated rectangles are colliding each other
问题 After saw this question many times and replied with an old (an not usable) code I decide to redo everything and post about it. Rectangles are defined by: center : x and y for his position (remember that 0;0 is TOP Left, so Y go down) size : x and y for his size angle for his rotation (in deg, 0 deg is following axis OX and turn clockwise) The goal is to know if 2 rectangles are colliding or not. 回答1: Will use Javascript in order to demo this (and also provide code) but I can be done on every