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 / Rotating camera aaround an object.

Author
Message
code master
20
Years of Service
User Offline
Joined: 4th Dec 2003
Location: Illinois
Posted: 16th Apr 2006 03:30 Edited at: 16th Apr 2006 03:32
I've seen lot's of people post versions of this, but this is the simplest and most effective, in my opinion any way...

Example:



The two lines that do it all:



move the mouse to rotate. Use the mouse wheel to control the camera distance.

Crud! How could I type the title wrong?

"I don't bite her, i just slobber on her" "I remember things as well as a retarded goldfish, who just swam through the chicago river"

Xarshi
18
Years of Service
User Offline
Joined: 25th Dec 2005
Location: Ohio
Posted: 16th Apr 2006 05:46 Edited at: 16th Apr 2006 05:52
you could also do this. Its a little more complicated though....


all ben needs is his band,his guitar,and his computer...
and his dead little power puff girls...
Zerk
18
Years of Service
User Offline
Joined: 13th May 2006
Location: Orbiting Jupiter
Posted: 20th May 2006 21:40
Good snipplet! Works like a charm!

Login to post a reply

Server time is: 2024-11-23 07:51:06
Your offset time is: 2024-11-23 07:51:06