Okay, I'm trying to write a program that could tell me if any points in a 30x100 rectangle rotated to 140 degrees are inside another 30x100 rectangle rotated to 200 degrees.
Honestly, I don't even know where to start. I thought about re-rotating them before doing normal calculations, but than they still wouldn't match up.
How can I do this?
From stackoverflow
-
Here's a tutorial on collision detection for 2D rotated rectangles.
-
Google provides 2D rotated rectangle collision on GameDev.net.
0 comments:
Post a Comment