A Sphere that passes through the wall

Hi guys , I have created a ball game in 3d with the superspeed , but when i use the superspeed the ball goes too fast and goes through the wall , as if the wall did not exist , instead of stopping the ball walk across the wall , how can i solve this problem ?

Take the position in the last frame and the position in the current frame. Cast a ray from the old position to the new one. If that ray hits a wall, then you know the ball has travelled passed the wall.