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] - Orbit camera motion

Author
Message
Le Verdier
12
Years of Service
User Offline
Joined: 10th Jan 2012
Location: In the mosh-pit
Posted: 26th Jan 2012 17:08 Edited at: 28th Feb 2012 17:33
Many a 3D application does not provide a plausible orbit camera motion.
there is however several ways to achieve such good one.
I like this one: a combination of two rotation axis that act like a "miller wheel",
As shown below:




Here's a sample code to show it:





This snippet is a part of my Simple 3D Sandbox

Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Mar 2012 02:54
nice piece of code, i use something similar in Lanscape & Map Creator

Login to post a reply

Server time is: 2024-03-28 12:51:31
Your offset time is: 2024-03-28 12:51:31