4 ms·
From cmcaine on lobste.rs: This may occur because collisions modify a ball’s position but not its velocity. Balls are also attracted to each other more the fur
by CyberRabbi 6y ago
From cmcaine on lobste.rs:
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.
Here’s the most relevant code:
https://github.com/johnBuffer/NoCol/blob/d60bc4029186dac888a96b38a7410e81aea89471/src/main.cpp#L97-L123 https://github.com/johnBuffer/NoCol/blob/d60bc4029186dac888a...
Dunno why that makes it converge, but those are some differences from normal elastic collision.