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.

Code Snippets / [DBP] Mouse Orbit

Author
Message
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 16th Jul 2009 10:43 Edited at: 16th Jul 2009 11:42
Heres a little snippet to demonstrate how to make the camera orbit around an object using the mouse..

Controls
* Use the right mose button and drag to orbit the camera
* Mouse wheel click and drag to zoom in and out, also up and down keys for those with a crappy mouse (no offense)
* 1 and 2 change the object to orbit



If you have any suggestions please let me know, especially if you can help out with transitions when changing objects

Also thanks to Evolved for his help, even though it wasnt direct..

bobbel
15
Years of Service
User Offline
Joined: 5th Jan 2009
Location: In my DBPro case xD
Posted: 16th Jul 2009 11:35
It could be me, but... Where r tha codez?

Oh No, there's too much blood in my caffeine system!
Stack Overflow: Too many pancakes...
The programmer's national anthem is 'AAAAAAAAHHHHHHHH'. -Weinberg, p.152
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 17th Jul 2009 03:35
i have edited the codez in, sorry for not doing it before, i must have done a little mistake...

Login to post a reply

Server time is: 2024-11-22 02:13:47
Your offset time is: 2024-11-22 02:13:47