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 / third person mouse camera X and Y

Author
Message
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 3rd Jan 2007 23:23
i have tried making one of my own, i tried putting together code snippets, i did get something, but not what i wanted. i also searched the whole forum for something that might be of use.

while there are a lot of third person mouse camera examples, all of them are only x axis. I am looking for a camera that is controlled by x and y axis and always looks at the character.

basically i am looking for the kind of camera control like any regular commercial third person game. JKA, Morrowind, oblivion, gothic, GTA series. All of these games have the same type of camera That i am loking for.

has anyone been able to make something like this?

dont hate people who rip you off,cheat and get away with it, learn from them
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 3rd Jan 2007 23:39
Simple:

(not tested)


x#,y# and z# would be the positions of your guy

lower logic
18
Years of Service
User Offline
Joined: 15th Jun 2006
Location:
Posted: 3rd Jan 2007 23:47
Depending on what sort of camera you're looking for, it can be easier to position the camera at the object it's looking at, rotate it, and move it backwards:

This board is a place to post code snippets, not request them.
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 5th Jan 2007 04:23
Wrong board - snippets only on here please - not questions...

TDK_Man

PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 5th Jan 2007 04:46
well, sorry for misunderstanding, i was very desperate for a third person camera.

Although the last snippet would have solved all my problems, i have figured out how to make a pretty good one. (i am surprised i didn't think of this before ). This method requires for the camera to follow a limb on a mouse controlled object.




dont hate people who rip you off,cheat and get away with it, learn from them

Login to post a reply

Server time is: 2024-11-22 23:30:07
Your offset time is: 2024-11-22 23:30:07