I’m having trouble aligning an object with the player’s crosshair. I’ve used GetLocalForward to calculate the direction the player is looking, and I moved an object in that direction, but the object doesn’t align correctly with the crosshair. I’ve tried drawing a debug line from the player’s position to the calculated direction, but the line ends up a bit below the crosshair.
Hey, hope i’m not too late. Actually the view rotation is a vector. So when you draw the line you have to use the view position not the player position.
Your DrawLine function is building a line parallel to the view vector.