Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Problem with mouse camera movement, like a 3D editor ...

Author
Message
Greg Bassett
16
Years of Service
User Offline
Joined: 14th May 2008
Location: United Kingdom
Posted: 6th Mar 2009 22:34
I have the following code which works great! To control the camera movement around a point, in this case 0, 0, 0. I can also zoom in and out using right mouse button.

However, I want to be able to calculate the azimuth, bearing and distance, by reading the camera x, y and z positions.

I believe I need to do some inverse calculations, but I am crap at math! Help!



Thanks in advance!
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 7th Mar 2009 03:33

Login to post a reply

Server time is: 2024-09-30 19:18:04
Your offset time is: 2024-09-30 19:18:04