I’m creating a topdown game and I want to add a visible line from my playerpawn to the direction he is facing, stopping at walls
I assume I need to add a line trace from my playerpawn to where he is facing (with forward vector, already have this and this is working), and then create every tick something from my playerpawn to where i get the HitResult back?
Or maybe I can add something to my playerpawn that when it moves it moves with him, and shrink and stretch based on the hit result every tick?
I’m using UE 5.0.2
Any idea will be most welcome
Thank you everyone