Re: halving the range of wheel->lfMax and wheel->lfMin
Bernhard Wymann <[email protected]> Mon, 3 Oct 2016 00:02:12 +0200
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Organization | wytec |
| Message-ID | <[email protected]> |
Hi David You can set these parameters directly in the xml configuration of the car, no reason to fudge with the code, see wheel.cpp: wheel->lfMax = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMAX, (char*)NULL, 1.6f); wheel->lfMin = GfParmGetNum(hdle, WheelSect[index], PRM_LOADFMIN, (char*)NULL, 0.8f); Look up the definition in car.h for the effective xml parameter name: #define PRM_LOADFMIN "load factor min" #define PRM_OPLOAD "operating load" Kind regards Bernhard On 02.10.2016 00:02, David Savinkoff wrote: > Hi, > > I found that halving the range of wheel->lfMax and wheel->lfMin > greatly improves realistic tire performance in TORCS > > see line 283 in the patch: > > // load sensitivity > - mu = wheel->mu * (wheel->lfMin + (wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > + mu = wheel->mu * ((0.75f*wheel->lfMin + 0.25f*wheel->lfMax) + 0.5f*(wheel->lfMax - wheel->lfMin) * exp(wheel->lfK * zforce / wheel->opLoad)); > > Test the true limits with TORCS. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot