#123493 - ETkoala - Wed Mar 28, 2007 4:19 pm
It took me a while to get all the formulas, make a demo and prepare the image tutorial, but it's worth for the nice result I got there!.
In the demo are 2 squares (you can move one) which will turn lightred when there is a collision detected. In the SubScreen you can see all the Areas calculated (see image explanation for what are them) while you move your square.
Here's a screenshot with collision and non-collision:
[Images not permitted - Click here to view it]
You can Download (Demo+Source) here: http://etk.scener.org/collisiontesting.rar
And the Explanation (which I strongly recommend for those who want to know how it works):
[Images not permitted - Click here to view it]
I hope this helps many people, atleast it helped me :)
In the demo are 2 squares (you can move one) which will turn lightred when there is a collision detected. In the SubScreen you can see all the Areas calculated (see image explanation for what are them) while you move your square.
Here's a screenshot with collision and non-collision:
[Images not permitted - Click here to view it]
You can Download (Demo+Source) here: http://etk.scener.org/collisiontesting.rar
And the Explanation (which I strongly recommend for those who want to know how it works):
[Images not permitted - Click here to view it]
I hope this helps many people, atleast it helped me :)