Removed some code

This commit is contained in:
Manish 2019-05-22 17:27:54 +02:00
parent c36131fad5
commit 39c75378b6
1 changed files with 0 additions and 7 deletions

View File

@ -316,11 +316,8 @@ void ACarlaWheeledVehicle::ApplyVehiclePhysicsControl(const FVehiclePhysicsContr
return;
}
TArray<FWheelSetup> NewWheelSetups;
for (auto i = 0u; i < PhysicsWheelsNum; ++i)
{
FWheelSetup WheelSetup = Vehicle4W->WheelSetups[i];
PxVehicleWheelData PWheelData = Vehicle4W->PVehicle->mWheelsSimData.getWheelData(i);
PWheelData.mRadius = PhysicsControl.Wheels[i].Radius;
@ -329,10 +326,6 @@ void ACarlaWheeledVehicle::ApplyVehiclePhysicsControl(const FVehiclePhysicsContr
Vehicle4W->PVehicle->mWheelsSimData.setWheelData(i, PWheelData);
Vehicle4W->Wheels[i]->TireConfig->SetFrictionScale(PhysicsControl.Wheels[i].TireFriction);
NewWheelSetups.Add(std::move(WheelSetup));
}
Vehicle4W->WheelSetups = NewWheelSetups;
}