Cool lecture! I finished it with no problems but I’m confused as to why this works. If the tick component is called every frame, then shouldn’t the OUT parameter Hit be null for most frames? If Hit is null then how are we able to call Hit.GetActor()?
I feel like we should have to put GetWorld()->LineTraceSingleByObjectType inside of a conditional if statement and only call Hit.GetActor if that if statement is true.
My code is working properly but I feel like this is exposing a weakness in my logic.