Original Post
Hello!
I read an article in this forum some minutes ago about 2D-collisions (from July 2000). It described how to detect if two objects were overlapping each other. But still there is one thing that is unclear for me:
If I have detected that two objects have collided, and I want the two objects to bounce from each other, in two different directions. How can I check from what direction the two objects were coming from?
I have an idea, but I don''t know if it is good:
* I make a history list of the latest moves of the object. From that I can calculate a direction, in some way
.
Would this work, or is there a better way to do it?
Fredrik Hellman
mrhellman@telia.com