Hello, I have been trying to create a function that creates a line trace a certain length but ends if it reaches a given Axis (Axis Value change constantly). The line trace starts from the camera forward vector and should end once it reaches the given axis value (end as in the length of the line trace not the function).
This way no what angle i look at the axis the line trace will adjust itself to reach that point.
The question is how would
The Question: Is there a way to calculate the distance from the player/camera forward vector to the desired x axis in a 3d space?
i can provide more screen shots if needed