reordered function call to avoid garbage collection between calls + changelog
This commit is contained in:
parent
e3f61e285a
commit
5d3c8c2e37
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue