The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: rick | Created: 2018-03-20 02:04:09
Subject: Experimental simuv2 which adds downshift time and simple rev matching.
So, I've been examining the transmission code in simuv2, and I wanted to make it a bit more realistic. So I added two new variables, one called "downshift time" and another called "blip throttle".
Normally on most cars especially with manual transmissions downshifting is a bit slower than upshifting. The code defaults the time to 0.2 seconds and throttle blip to 50%. Here's a sample code to use on your car's xml:

<attnum name="downshift time" val="0.25" unit="s"/>
<attnum name="blip throttle" val="0.4"/>

Add this after "shift time" on the car's transmission section.
The downshift time is pretty straightforward, and blip throttle must be any value between 0 and 1. In this case, 0.4 means the car will use 40% of the gas pedal to rev match, but you may use it higher or lower depending on your car's engine inertia, play around with this value until it feels reasonable. But usually set it too high and the car may redline too much, set it too low and you barely notice it.

Known Bugs: When you spin your car out of control and downshift, it may try to rev match even when you're idling.

Here's the link to the file and a video:

Last Edited: 2018-03-20 02:04:09 by rick