In the next version (v2), I'm trying to add edgeCollision handling. I'm having some problems, maybe you will be able to help me.
All the v2 branch source code is on github repository : https://github.com/topheman/Ball.js/tree/v2
The v2 demos (where you can see the bug I will be talking about) : http://labs.topheman.com/Ball-v2/#help
As you will see on the demo, I have two major problems that I'm having a really hard time to solve on Ball.js :
resolveEdgeCollision: bounce angle is inconsistent
checkEdgeCollision: if the ball's velocity (the length that it runs each frame) is higher than its diameter, eventually, it will pass through an edge, without triggering any collision
Any Ideas ?...