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 !
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 !
Torque Owner Aidan Sliney
Any hint on where to look in the c++ files ?