diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/AcekrmannController.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/AcekrmannController.cpp index 5134beb58..c3b31fed9 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/AcekrmannController.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Vehicle/AcekrmannController.cpp @@ -228,10 +228,5 @@ void FAckermannController::UpdateVehicleState(const ACarlaWheeledVehicle* Vehicl } void FAckermannController::UpdateVehiclePhysics(const ACarlaWheeledVehicle* Vehicle) { - UWheeledVehicleMovementComponent4W *Vehicle4W = Cast( - Vehicle->GetVehicleMovement()); - check(Vehicle4W != nullptr); - - // Update vehicle physics VehicleMaxSteering = FMath::DegreesToRadians(Vehicle->GetMaximumSteerAngle()); } \ No newline at end of file