I’m an vacation/holiday this week, and got 2D rotated rectangle collision detection working. I’m not smart enough for Separating Axis Theorem right now, so just leave the rotation on the first rectangle at 0 degrees, and then rotate the second rectangle by the negative degrees of the first rectangle around the axis of the first rectangle. It works pretty well, and seems to be plenty fast, even though I have to do it twice, so I’ll leave it for now.
Now I’m trying to get the collision response working with rotated rectangles. What I’m going to try, is to record all of the collision points, then register if there are left-bottom or right-bottom collisions on the rotated rectangles. If so, I’m thinking I could just increase or decrease the rotational velocity.
It makes sense and could work good-enough, but I’m curious as to how any of you have handled it. If you tell me I should just take a math class, that’s not gonna happen, but I will buy any books you recommend.
Thanks,
Rich