When I die in the game, my camera seems to “jump” backward from where my player was. I’m not sure how to fix this so it stays in the position it was before death. It seems to be working as expected in Sam’s lecture.
Here’s a video of what I am referring to.
Here is my EndGame()
function:
for (AController* Controller : TActorRange<AController>(GetWorld()))
{
bool bIsWinner = Controller->IsPlayerController() == bIsPlayerWinner;
Controller->GameHasEnded(Controller->GetPawn(), bIsWinner);
}