Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Back draft [SOLVED]
11-28-2010, 04:35 PM,
#1
Back draft [SOLVED]
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 Smile

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


Messages In This Thread
Back draft [SOLVED] - by Surzh - 11-28-2010, 04:35 PM
[No subject] - by NaN - 11-28-2010, 04:36 PM
[No subject] - by Surzh - 11-28-2010, 04:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)