I'm a programmer working on a game and I'm struggling with the physics engine. What I've gotten from my research is that there are elastic and inelastic collisions. Neither works for my purpose.
Let's say ball A is at a standstill and ball B is moving.
B-> A
In an elastic collision, ball A and B would switch momentums.
BA
B A->
In an inelastic collision, they would stick together.
B-> A
BA->
BA->
What I want is for them to bounce away. B bounces to the left a bit, and A gets most of the momentum and moves right.
What kind of collision is that?
And if possible, please explain it to me like I'm a high schooler; I don't know much physics/math.
Thanks!