Original Post
I need a way to figure out if two rects are moving toward each other. I need this for my collision detection code to prevent objects from colliding mutable times (if in frame x two objects are overlapping the program calls the collision code to modify the objects velocity. If the time step of the next frame is less, or the velocity’s are less, the two objects might still be overlapping the next frame and “Collide” again.) So In the collision test I need to test that the objects overlap, and that they are moving toward each other.
I know how to do this with circles, but I do not know how to do it with rectangles.
I suspect that a simple test might not be possible with rects. If this is the case, dose any body know any other way I could make rectangle collision detection work?
Thanks for any help.