Reply To: I can’t increase the length of line renderer.

Forum Archive I can’t increase the length of line renderer. Reply To: I can’t increase the length of line renderer.

#27028
Jonathan Gonzalez
Participant

    I’ll have to take a look at the updated changes to the component. Nonetheless the “length” of the line renderer is based off the raycast hitting an object. The line is rendered using vector3 points (position). So the starting point of the line would be at the front of the weapon, the end point would be a straight line to whatever we hit like the enemies or even a wall. We detect that hit using the raycast. So the raycast hit point is the second position that we use for the line renderer. Taking those two points it renders a line between them.