0

I'm looking for an algorithm solving a problem with detecting collisions between non-aligned objects in 2d (e.g. rectangles), as below: Collision example

How do I go about it? All of the articles I found online handle axis-aligned objects, which is not what I need. As for know, I handled only collisions between circles by measuring distance between their centers, but this case is way more difficult.

borkovski
  • 938
  • 8
  • 12
  • Just rotated rectangles or also less convenient shapes? – harold Sep 17 '17 at 19:58
  • 1
    Several answers [here](https://math.stackexchange.com/questions/1278665/how-to-check-if-two-rectangles-intersect-rectangles-can-be-rotated) – Ripi2 Sep 17 '17 at 20:02
  • You can rotate both rectangles simultaneously sothat one of them become axis aligned, and the problem becomes much easier. –  Sep 17 '17 at 21:12
  • or just test the circumference lines for intersection ... – Spektre Sep 18 '17 at 06:31

0 Answers0