This is a tutorial for how to make a realistic simulation of air hockey! Press see inside to read a step by step explanation to the code. The orange thing (I call it the player) will follow your mouse around, hit the blue puck and it will slide around. I know there are glitches, and I'll try to fix them. I put a lot of effort into this, so enjoy!
All credit goes to me. Please notify me if this was helpful in the comments below! Thanks!