Why in the TankPlayerController.cpp the UE Cast function reported below:
ATank* ATankPlayerController::GetControlledTank() const
return Cast< ATank >(GetPawn());
convert the APawn* pointer returned by GetPawn() into an ATank object?
Shouldn’t the cast match the type returned by GetControlledTank() function (so an ATank* pointer)?
return Cast< ATank* >(GetPawn());
Thanks in advance,