I want to make a 2d game similar to rocket league 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?
Thanks!