![]() |
Back draft [SOLVED] - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Help (https://www.vdrift.net/Forum/forumdisplay.php?fid=5) +--- Thread: Back draft [SOLVED] (/showthread.php?tid=1380) |
Back draft [SOLVED] - Surzh - 11-28-2010 Hello. I have not found mechanism to run car back. So.. I reviewed code and found an ease way to implement this feature void CARDYNAMICS::CalculateDriveTorque(T * wheel_drive_torque, T clutch_torque) If we assign each element of the wheel_drive_torque array to negative values then car will run back ![]() For testing, you may add minus in each operation of setting wheel_drive_torque's value. Only one question... I am not clear with VDrift engine and SDL. So, I don't know how to get the pressed keys (it is good idea to handle some special button for switching between forward and backward draft). How I can add this handling? Sorry for my English. Thanks, Ivan Surzhenko - NaN - 11-28-2010 Try reverse gear. To shift down use Page Down key. - Surzh - 11-28-2010 Oh... Thanks.. I see... sorry |