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.

Newcomers DBPro Corner / Rotate Camera

Author
Message
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 9th May 2005 12:56
I feel really stupid to ask this, but how would I rotate a camera around a bunch of objects, saying that 0,0,0 was the center? and I don't want to have to use the arrow keys, because they're meant for something else.

Preffered controls:

right mouse to rotate
Mouse wheel to zoom
keypad to move camera



Thanks to whomever helps me get out of this coding block...

[me]"My throat froze!"
[other person]"Force quit it next time..."
A.K.A Death Stalker
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 9th May 2005 13:34
here is how I have managed to do it.


you might need to change the numbers but this is basically it
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 10th May 2005 03:14
Thanks, your jus saying to rotate the whole object?

[me]"My throat froze!"
[other person]"Force quit it next time..."
A.K.A Death Stalker
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 10th May 2005 04:24
Search the CodeBase for an Orbit function. Use maths, SIN() is very usefull here.


Click here to join our forums and get updates on game progress sooner!
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 10th May 2005 05:23
Don't want to sound any stupidder...but.....still don't quite get those math commands: sin,tan,cos

but thanks for the advice! (I knew i should've done that first)

[me]"My throat froze!"
[other person]"Force quit it next time..."
A.K.A Death Stalker

Login to post a reply

Server time is: 2024-09-23 19:36:20
Your offset time is: 2024-09-23 19:36:20