07-30-2011, 05:56 PM
Code:
if (!cfg.get("mass", mass) && !cfg.get("inertia", inertia))
{
...
mass = tire_mass + rim_mass;
inertia = (tire_inertia + rim_inertia) * 4; // scale inertia fixme
}
wheel.SetMass(mass);
wheel.SetInertia(inertia); // inertia of associated driveshaft
If the "mass" parameter is present in .car file then second part of the if() statement will not be evaluated and inertia = 0 even if present in .car file.