reordered function call to avoid garbage collection between calls + changelog

This commit is contained in:
Manish 2019-03-19 12:23:26 +01:00
parent e3f61e285a
commit 5d3c8c2e37
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,7 @@
* Added `id` property to waypoints, uniquely identifying waypoints up to half centimetre precision
* Added OpenDrive's road offset `s` as property to waypoints
* Fixed python client DLL error on Windows
* Fixed wheel's tire friction from physics control parameters.
## CARLA 0.9.4

View File

@ -233,11 +233,12 @@ void ACarlaWheeledVehicle::ApplyVehiclePhysicsControl(const FVehiclePhysicsContr
// Creating TireConfig
UTireConfig *newTireConfig = NewObject<UTireConfig>();
// Assigning to component
Wheel->TireConfig = newTireConfig;
// Setting a new value to friction
newTireConfig->SetFrictionScale(PhysicsControl.Wheels[i].TireFriction);
// Assigning to component
Wheel->TireConfig = newTireConfig;
}
Vehicle4W->WheelSetups = NewWheelSetups;