the most complex and most accurate one I have ever seen was by Canthiar. Thia is probably the best, simple one that does not make my head spin :) I love it!!!!!!!!!!!
Well done, Federici! By you and Colkadome, because I was working in order to find a way to tell the ball from which side it was kicked. Now, thanks to you, I already know a good way to do that.
This is what looks to me a perfect collision detection project for sprites with constant and equal speed. I guess that timing and speed should be linked in some clever way.
The collision routine is not mine. It is derived from the beatiful Colkadome's "Ultimate Pool" project.
Comments
You need to be logged in to post comments
Add a Comment
Where is the code for this? Is there one posted online?
(view all replies)Comment Reply
you can download the code by clicking on the download link on the topright column
(view all replies)Comment Reply
I downloaded it and saw it was quite simple! I thought it was going to be complicated.
(view all replies)Comment Reply
Yes, this was the purpose, to find a natural and simple way of handling bounces. And Colkadome found a very good one!
(view all replies)Comment Reply
wow
(view all replies)Comment Reply
Could you please re-post those links not in a reply? They were cut off quite a bit. I could only see about half of it!
(view all replies)Comment Reply
Look at post #7 from (link to forums). I hope this won't be cut off.
(view all replies)Comment Reply
the most complex and most accurate one I have ever seen was by Canthiar. Thia is probably the best, simple one that does not make my head spin :) I love it!!!!!!!!!!!
(view all replies)Comment Reply
Well done, Federici! By you and Colkadome, because I was working in order to find a way to tell the ball from which side it was kicked. Now, thanks to you, I already know a good way to do that.
(view all replies)Comment Reply
Thanks :-) If I find some time I would like to make some of these "how to scratch" projects, extracting good strategies from excellent projects
(view all replies)Comment Reply
This is gorgeous! A good idea to separate it out from the game so it is easier to understand.
(view all replies)Comment Reply