I’ve problem to handling multiple ball collision. When the initial velocity > 0 it’s running very well. But my problem come when i set the initial velocity of ball2 = 0
It’s my code :
newVell = (ball1.speed(ball1.mass-ball2.mass))+(2ball2.speedball2.mass)/(ball1.mass+ball2.mass)
Please help me