Line Trace By Channel Perpendicular from character

Hello, I’m having trouble making a line perpendicular to my character.
A picture is worth 1000 words .

So I have no problem creating a straight line from my character. Now I’d like another line at the end of this line, perpendicular to it (regardless of my character’s rotation).

Here is an image of my blueprint for the straight line starting from my character:

(“Bottom Position” is the feet of my character use here to find a Z to the floor no need to worry about that).

So anyone know the math/vector formula to get this pls ^^

Hi,

I added some extra markings to your drawing. (Point A, length b, vector c and vector d that is perpendicular to c) Point A is the end of your original line. b is some length you decide.

First you need to figure out d. You can either do so by rotating c by 90 degrees with RotateVector or by instead getting the right vector from the world rotation of your first person mesh.

Now you multiply d by b, let’s call it db. You subtract db from A to get the start of the new line and add db to A to get the end of the new line.

Hey, thanks a lot ! It work :

Here the blueprint if it can help someone :

with notes :

without :