PDA

View Full Version : Directional Movement with trigonometry



Cairn
07-05-2010, 09:03 PM
Hey all, This is a relatively simple topic and I have found out how to create an object in OpenGL that moves depending on its current angle using some trig functions, the only problem is that I'm not exactly sure how it works, I know how to use Trigonometric functions for triangles, but I don't understand how it translates the angle to the right amount of translating, etc. so if anyone can shed some light on this for me it would be greatly appreciated.

Thanks in Advance :)

carsten neumann
07-06-2010, 07:41 AM
Please post relevant code snippets or give a detailed description of what you are doing; without that you make it very hard for anyone to help you.