0 votes
by
retagged by

Is there any way to set the parameters of tire friction model dynamically (adherent, peak, limit)?

I saw how to get this parameters and how to set the friction multiplier but nothing to set directly adherent slip.

It would be  SetWheelTireFriction?

If is possible, what VPP version would be?

Thanks,

Joan

1 Answer

0 votes
by
 
Best answer

In all editions of VPP you can access VPVehicleController.tireFriction.settings from scripting. The reference for TireFriction.Settings is here:

https://vehiclephysics.com/blocks/tires/#scripting-reference

The Settings class encloses the properties for all supported tire friction models. Each property has effect or not depending on the model selected in TireFriction.model.

After changing the model and/or the Settings values you must call TireFriction.SetupFrictionCurves() for the changes to have effect. Note that this method is slow and increases the GC footprint, so it shouldn't be called often.

...