I looked at nehe's tutorials and i decided to just go ahead and elaborate on them... I changed them around quite a bit, but without posting the whole source code (which is ugly by the way, wasn't ment to remain like this since i was just going to convert it to another programming language later when i got it to work), i think you'll figure out what each part is, but the problem is, i can't quite manage what i'm trying to do.
Download Links:
Links are hidden from guests. Please register to be able to view these links. Basically, i'm pretty sure my problem lies within the line that i'm trying to get the zpos for. The 180 involving ifs are for when i flip upside-down and such, so i don't have trouble with the controls reversing on me. If you want the whole source code to mess with, i'd be happy to give it to you, but remember that it's mearly a mod of the nehe tutorial 10. The idea is to get the Z based on the x *AND* the y to make a sphere movement system, rather than the tutorial's original rotate on x forming a cylender system.