Draw debug line of forward and right vector based on dot product.

Hi,

I want to draw a line from forward/right vector of an object to a player position, the line length is based on the dot product between the relative position (player and object) and forward / right vector.

I can draw the line but it is always in the same direction even when I am on the opposite side of the object. How can I make this line follow if the player is the opposite of the abs value of the right / forward vector?

Try this:
Dot

3 Likes

Thank you so much!!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.