Game Development Community

How to separate movement and camera?

by Chris Garrett (CG) · in Torque Game Engine · 06/15/2002 (6:07 pm) · 14 replies

Im currently working with the Vehicle class and I want to separate movement from the camera. Move with keys and view with the mouse. I have spent hours sifting through scripts, classes, forums and the sdk documentation getting myself familiar with the flow for this and I am stuck on where to begin. From what I see I think the changes would have to me made to the vehicle class but I can see a few different functions that look like they handle movement. Im sure someone can point me in the right direction and save me hours of stepping thru code.

TIA

Chris

#1
06/15/2002 (7:18 pm)
Take a look at this tutorial. Its the first thing I read when I started working on my camera and it helped get me started quite well.
#2
06/15/2002 (7:44 pm)
Sweeettt!. Thanks very much
C
#3
06/20/2002 (2:05 am)
This tutorial is awesome!
very clear, easy to follow and instructive.

Thank you for your post, Dave!

Laurent
#4
11/04/2002 (8:43 am)
The link (and the whole v12.ultimagroup.com website for that matter) seems to be dead now.

I'm very interested in reading this tutorial - could someone point me to where I can find it? Or maybe a tutorial covering similar subjects?

For the past few days, I've been trying to move the camera physically up a bit in 3rd person view, so that it would emulate the typical camera seen in 3rd person action games such as Tomb Raider, Oni, Max Payne etc.

Could someone point me in the right direction for this?

Thanks a lot!
#5
11/07/2002 (8:54 am)
You could always create an invisible player object with a camera mount and have the player toggle between them. You would then be able to bind the invisible "player" to the mouse and maybe script it to follow the player model, depending on what you want to do of course.
#6
11/07/2002 (7:35 pm)
Lucky for you I save these things. If you send me your email Ill be happy to zip it up and forward it to you. Its an excellent read. cgarrett@canada.com
#7
11/08/2002 (4:24 am)
Thanks Entr0py, I'll try out that idea.

And thanks Chris! You're a godsend :) I've just sent you the mail.
(Hope you don't take me garbled "Sender" name for spam - Being a Korean, I use a Korean e-mail provider and it displays my name in Korean characters which unfortunately show up as unintelligible rubbish on English Windows)
#8
11/10/2002 (6:07 am)
Thanks Chris, I received your mail.

I agree that it's a really good read - such a shame that the site went down.
#9
11/11/2002 (1:21 am)
could someone post it then please? ;)
If you need a place to put it, we could integrate it into our tutorial section at tork.zenkel.com
Just send it to me if you want me to put it online there... thx! :D
#10
12/10/2002 (1:20 pm)
err... bump! :P
#11
12/10/2002 (2:20 pm)
Hi ppl,

Sorry for lag in replys, have been out of the torque loop for awhile. I emailed the zip to Stefan so it should be available some time soon.

Cheers

CG
#12
12/10/2002 (3:21 pm)
thx again, Chris! :)
And here ya go, folks: tork.zenkel.com/tutorials/camera/article_read.htm
#13
12/10/2002 (4:39 pm)
sublinks are borked....
#14
12/11/2002 (7:33 am)
err, yeah, glad you are happy that I've uploaded it, Ron... :P
those links are fixed now, though...