Game Development Community

Vehicle Cameras

by Kevin Ostrowski · in Torque Game Engine · 02/28/2002 (1:11 pm) · 7 replies

When I mount a vehicle the camera appears to stay with the player, how would I change this to use the vehicle's? I have the model set up correctly in Milkshape, I just used the default car and changed the model.

#1
02/28/2002 (2:33 pm)
Kevin can you update your email on the MyGarage Preferences page. All your forum notifications are bouncing. Thanks --Rick
#2
02/28/2002 (3:27 pm)
Ok, I changed it... Lame spam is always filling my hotmail account.
#3
08/18/2002 (5:53 pm)
**bump**
#4
08/18/2002 (6:26 pm)
does it for me too might be a bug
#5
08/18/2002 (9:32 pm)
Make sure you have eye and cam under always export in your .cfg file in the directory you are exporting to.
#6
08/18/2002 (10:12 pm)
I don't think this is a model issue. I am pretty sure it is a code issue. The vehicles use a laggy camera. When you drop in with the player as a vehicle, it uses the vehicle camera code, which has some parameters for camera smoothing.

When you are a player, it uses the player camera, even when you mount a vehicle. I am not sure that you can use the vehicle camera code when you are mounted on a vehicle as a player. This is the way it works by default, and is not a bug as far as I know.

There is probably a way to do this, but switching the control to the vehicle is something that would probably have to be done in code or script.
#7
08/18/2002 (11:28 pm)
i made it so when you collide with a vehicle it does
%obj.client.setcontrolobject(%col) and mounts you on it and it works with the default vehicle.