My solution is to connect every car object with Rect object and make function like this:
Using java Syntax Highlighting
- class Car{
- public Rect bounds=...;
- public boolean collides(Car anotherCar){
- return this.bounds.intersect( anotherCar.bounds );
- }
- }
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Unfortunately, in documentation I haven't found any class that could keep a rotated Rect and provide intersect funtion.
How could it be solved?
Thanks in advance!
PS. It's my first project and I don't want to use andengine yet.


