you can use a CircleCollider with no friction and applying an impulse to it, and the walls have some restitution which decrease the speed at contact. I would also look for pool examples for Box2D on Google, maybe you even find some open source projects with source code that you can use as a reference.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: