Download

Cannot swap TireConfig at runtime?

Hello,

I am trying to swap the TireConfig of the UVehicleWheel while the game is running, the change works in that the Wheel TireConfigs are swapped, but the change doesnt affect the behavior of the car. I have searched the forums but cannot find a clear answer to if this is possible, and if so what function needs to be called to get PhysX to realize there has been a change in its data during runtime.

UWheeledVehicleMovementComponent* VehicleMovement = MyVehicle->GetVehicleMovementComponent();

for (UVehicleWheel* Wheel : VehicleMovement->Wheels)
{
Wheel->TireConfig = TireConfig.LoadSynchronous();

Thank you in advance for any tips!