Ring Toss Basic Functionality

I got the basic ring toss functionality up and running. Now I only have 2 more games to get the basics sorted out for and then I can start going back and making nice levels for them.

This one was interesting because of the arch kind of throw. To make this work I am shooting a ray out from where you removed your finger from the screen, getting that hit of the ray back and using that location to calculate the math of what the arch would look like from the phone. Some cool thing someone made to show the maths!

After that I just take the velocity of the arch and I make a ring appear and I hit it with that much force, and math magic, it goes there. When I first got this working, I was super surprised that it did.

Check it out.