https://www.dinossi.com/ar-il/blogs/game/bouncing