I was able to find the issue,
The constraints that are required to stop the ball from passing through the box are actually called "3D Contact Constraints" which can be seen in exercise 9 of the How to Model Anything. They can be defined in the mechanism tab by clicking the surfaces that you want the object to stop at.