removed unnecessary cast
This commit is contained in:
parent
952c3b90ff
commit
51aac42a63
|
@ -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());
|
||||
}
|
Loading…
Reference in New Issue