Hi,
I am not understanding how is it possible to cast a APawn to APlayerController. They both share AActor in their hierarchy. I thought you can only cast to parents or children. And it does not seem that APawn is a child nor a parent of APlayerController. Can someone help me please understand this? This is part of Video “Setting Timers In C++” for shooter C++ game.