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 / circle maths again!

Author
Message
Pyro_guy
21
Years of Service
User Offline
Joined: 10th Oct 2003
Location: England
Posted: 6th Dec 2004 00:41
Ok, using the Sine and Cosine formula from this topic:
http://forum.thegamecreators.com/?m=forum_view&t=21323&b=7
I have a camera that rotates around the 'player' object when the user moves the mouse along the x axis.
What I would like to do now is combine two of the formula so that I can rotate around the player Y axis when the mouse is moved along the X (ie. left and right), and rotate around the X when the mouse is scrolled along the Y (up and down).

How can I go about combining these formula to create such a system? All methods I've tried create some weird zooming and spinning effects

Screw the rules...what can i blow up?
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 6th Dec 2004 03:01
Doing the maths for an orbit with a changing plane of rotation hurts my head just thinking about it. This is how I would do it, avoiding any maths:




Login to post a reply

Server time is: 2024-11-13 18:34:55
Your offset time is: 2024-11-13 18:34:55