Collision problem in rolling ball template

Will you please solve this problem also . I got stuck here very badly