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 / 3D Camera Move Function

Author
Message
Illusion Games
20
Years of Service
User Offline
Joined: 16th Feb 2004
Location:
Posted: 28th Apr 2004 17:04
This function allows the camera to be moved in 3D using classic fps control (mouse and keyboard)

Mikel Johnson
Illusion Games Studio
Dracsid
20
Years of Service
User Offline
Joined: 19th Apr 2004
Location:
Posted: 19th May 2004 18:38 Edited at: 19th May 2004 18:40
(edit)
Nice n' simple
Simian
20
Years of Service
User Offline
Joined: 16th Feb 2004
Location: my room
Posted: 25th May 2004 18:37
Hey. Cool code. I struggled forever to move the camera from side to side (strafe). Your code helped. Thanx

I adapted it to make camera controls using the middlemouse button and some combinations of keyboard keys, for a level editor I'm working on. Try it out





One problem remains. After orbiting the camera around a bit (specifically turning it about it's Y axis) The vertical pan starts going all screwy. What the Hell Is that?!

Can't figure it out

Anyone know why?
Red And Blue Eyes
20
Years of Service
User Offline
Joined: 20th May 2004
Location:
Posted: 27th May 2004 18:00 Edited at: 22nd Jun 2004 16:42
.

I Use Other People Code For My Own Bennefit Why Because I like It

Login to post a reply

Server time is: 2024-11-23 22:09:57
Your offset time is: 2024-11-23 22:09:57