I always heard Will Smith started improving the end of the scene, and using his own experiences when he was talking about not needing his father to teach him how to love his kids, learning to shoot ball without him, etc, and that Uncle Phil really started breaking down, and that the hug was genuine.