LineTrace in a diagonal C++

Hello,
Think I am getting the grips with the transfer from Unity however the LineTrace C++ code doesn’t seem to have a way to point it diagonally from the actor. I haven’t seen one example anywhere.
I effectively want the line to point towards the floor infront of the character USING CODE.

How do I pull this off. Thank you.

FVector Start = GetActorLocation(); // Or camera location, or whatever
FVector End = Start + ((GetActorForwardVector() - GetActorUpVector()).GetSafeNormal() * TraceDistance);

.GetSafeNormal() is unnecessary if you don’t care about the precise trace length.

2 Likes

Angel, I didnt know you could combine like that!
Thanks!!