I made in a program called Algodoo Physics. I got it off the Mac App Store for something around 30 bucks, but there's a free version that's only lacking a few features available here. EDIT: Apparently there's also a sale on Algodoo Physics today. I would recommend grabbing it for $5 opposed to 30 bucks.