I'm having some problems with collision detection here:
I have 2 cars viewed from above, so I want 2d collision detection on them while there actualy 3d, and those cars can rotate in any degree.
From those cars, I have following data:
* Their centerpoint(x,z; y is height) around which they rotate,
* Their rotation angle,
* Their lenght and width
There is of course the simple collision detection between to rectangles (=lenghts and widths), but you already see this would be a bad detection method cause when rotating, the rectangle is not straight anymore.
Therefore I'm looking for a (mathematical, but functional would be much better for me) collision detection between rotatable rectangles that is perfect.
Can anyone help me with that ?
Thanks in advance,