From cmcaine on lobste.rs:<p>This may occur because collisions modify a ball’s position but not its velocity. Balls are also attracted to each other more the further away they are from each other, which is wacky.<p>Here’s the most relevant code:<p><a href="https://github.com/johnBuffer/NoCol/blob/d60bc4029186dac888a96b38a7410e81aea89471/src/main.cpp#L97-L123" rel="nofollow">https://github.com/johnBuffer/NoCol/blob/d60bc4029186dac888a...</a><p>Dunno why that makes it converge, but those are some differences from normal elastic collision.