"Here we go with the 3rd part of Trick Shot HTML5 game prototype. I showed you how to charge and launch the ball in step 1, and how to create a moving crate along with an obstacle in step 2.
Now it’s time to handle collisions to determine if the ball entered in the crate without touching its opened top."