Game Development Community

Flying vehicle returning to original position ...

by Aidan Sliney · in Torque Game Engine · 09/19/2007 (3:26 am) · 1 replies

Hi there !
I'm currently using several flyingvehicles which the player can successively control. When the user takes the control of one of the vehicles, he can basically just modify its pitch and yaw. I have modified the engine slightly so that when the user drops the commands, the vehicle keeps on pointing in the same direction.

My problem is that as soon as i take control of a second vehicle with

LocalClientConnection.setControlObject(Vehicle2);

the first vehicle goes bak to its original position ... which it's not supposed to do !

I couldn't find in vehicle.cc or flyingvehicle.cc a line that makes the object go back to an horizontal position ...

Any ideas ?

Thanks in advance !

#1
09/21/2007 (5:55 am)
Sorry to bump the thread, i changed its name cause it wasn't really representative of what's in it !
Any hint on where to look in the c++ files ?