removed unnecessary cast

This commit is contained in:
Joel Moriana 2022-02-07 17:33:48 +01:00 committed by joel-mb
parent 952c3b90ff
commit 51aac42a63
1 changed files with 0 additions and 5 deletions

View File

@ -228,10 +228,5 @@ void FAckermannController::UpdateVehicleState(const ACarlaWheeledVehicle* Vehicl
}
void FAckermannController::UpdateVehiclePhysics(const ACarlaWheeledVehicle* Vehicle) {
UWheeledVehicleMovementComponent4W *Vehicle4W = Cast<UWheeledVehicleMovementComponent4W>(
Vehicle->GetVehicleMovement());
check(Vehicle4W != nullptr);
// Update vehicle physics
VehicleMaxSteering = FMath::DegreesToRadians(Vehicle->GetMaximumSteerAngle());
}