change camera behaviour in rolling ball example

Hi,
I am stucked with this problem.
I would like to change the camera behaviour in rolling ball example. I would like that camera follow the ball including when ball rotate right/left, like a 3rd person camera following the ball.
I have found some solutions over the internet but no one working well.
Could you help me?
Thank you