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 / camera that rotates around player?

Author
Message
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 29th May 2006 03:52
how can i code my camera to rotate around my player like in 'morrowwind'???

not sure if any of u here have played it but u can hold down tab & the camera points toward the player & rotates around the player.

i want to have a camera like this for a side-rpg project im making.
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 29th May 2006 05:38


Just some basic code to work with. Though itd be easier to just have a limb offset from the user and position the cam at the limbs position, then just turn the limb's parent object.

David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 29th May 2006 06:18
thanks! i can use this code for something else.

but not what i wanted,i forgot to mention u rotate the camera using the mouse.
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 29th May 2006 06:44 Edited at: 29th May 2006 06:44
Heavily based off of Ruccus's code-



Insanity is just a state of mind
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 29th May 2006 11:09
Once I made a rotating camera with the help of the "set camera to follow" and the "point camera" commands. I simply manipulated the values in "set camera to follow" and then pointed it at the player with "point camera". Even though it was not a perfect method, it worked.
CuCuMBeR
21
Years of Service
User Offline
Joined: 11th Jan 2003
Location: Turkey
Posted: 29th May 2006 22:38 Edited at: 29th May 2006 22:39
Using trigonometry gives you more freedom


Too Sexy

Login to post a reply

Server time is: 2024-11-27 18:45:35
Your offset time is: 2024-11-27 18:45:35