PiBoSo Official Forum

GP Bikes => Bikes => Mods => Physics => Topic started by: HornetMaX on April 10, 2016, 02:36:53 PM

Title: Question about new tyre referencing in mike physics files
Post by: HornetMaX on April 10, 2016, 02:36:53 PM
@Piboso:

why do we now have, in the bike's .cfg file:
And in the m_gp1000_03.cfg file:

It seems over-complicated, I really don't see the need for the m_gp1000_03.cfg file: the tyre0, tyre1 sections in the bike's .cfg file could simply reference a .tyre file, no ?
Title: Re: Question about new tyre referencing in mike physics files
Post by: PiBoSo on April 10, 2016, 05:15:51 PM

It is complicated, but needed because it was decided to add shared tyres to MX Bikes.
Title: Re: Question about new tyre referencing in mike physics files
Post by: HornetMaX on April 10, 2016, 06:38:25 PM
Yeah I've seen that (the need of tyre sharing across bikes) and it's something good in fact.

But I still can't see why it's needed to have the tyre0/1 etc in the wheel0/1 section of the bike's .cfg: if the bike's .cfg has a tyres section referencing a "master" tyres file (itself referencing multiple tyre files per wheel) then there should be no need for tyre0/1 etc in the wheel0/1 of the bike's .cfg. Or, the other way around: no tyres section (no "master" tyres file) and just reference .tyre files (which can be shared) from the wheel0/1 section of the bike's .cfg.

With the current organization, the ID of a tyre is present at 3 different places (bike's .cfg, master tyre file and .tyre file): I think there's something redundant here.