I want to make a basic LineRenderer which displays the direction the ball i am shooting will go towards.
mousePosition = Camera.main.ScreenToWorldPoint (Input.mousePosition);
aim.SetPosition (0, ballPosition);
aim.SetPosition (1, -mousePosition);
i have been playing around with this code to try and display a line that start at the center of the ball and draws out the opposite direction of the mouse location, however doing this only works if the ball is at the position of 0,0,0. i know that this is because the mousePosition is relative to the cameras world space but i cant figure out a way to make the line appear on the opposite side of the ball even after the ball has moved to a new position.