I was developing a prototype of a top down car racing game and now I need to integrate objects collisions (without box2d because it is too complex). I was using TNT Collision engine and oBoxToObox
function to check collision between car and objects due to the fact the car rotates, but it does not work.
Do you have any lua code to check collision between rectangle rotated?
You can download the source code to check it from here:https://github.com/jdbcdev/topdown_racing