How to fix circles overlap in collision response?
问题 Since in the digital world a real collision almost never happens, we will always have a situation where the "colliding" balls overlap. How to put back balls in situation where they collide perfectly without overlap? I would solve this problem with a posteriori approach (in two dimensions). In short I have to solve this equation for t: Where: is a number that answers to the question: how many frames ago did the collision happen perfectly? is the center of the first ball is the center of the