Posted 05 May 2009 - 04:51 PM
I don't know of any good tutorials or simple examples. What you are trying to do requires trigonometry, which is what you found. It may very well take you a few weeks to figure out how to use the resources that you found. Sorry, but that is what programmers do. They define a problem (how to target), see what other people have done (which are the links I gave you), and then they figure out how to use it, which requires effort on your part. Sometimes there are no simple examples, and sometimes it takes a long time to figure out how to do things, and sometimes it means learning other skills. In this case, you may need to spend some tie talking to a math teacher about trigonometry, or spend time with a math book.