2D Collision in Canvas - Balls Overlapping When Velocity is High
- by kushsolitary
I am doing a simple experiment in canvas using Javascript in which some balls will be thrown on the screen with some initial velocity and then they will bounce on colliding with each other or with the walls.
I managed to do the collision with walls perfectly but now the problem is with the collision with other balls. I am using the following code…