Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Back draft [SOLVED]
11-28-2010, 04:35 PM,
Back draft [SOLVED]

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.

Ivan Surzhenko
11-28-2010, 04:36 PM,
Try reverse gear. To shift down use Page Down key.
11-28-2010, 04:48 PM,
Oh... Thanks.. I see... sorry

Forum Jump:

Users browsing this thread: 1 Guest(s)