How would one make a Raycast bullet tracer? I have tried, but the tracer only appears if I hit something, as I used
if(Physics.Raycast(transform.position, transform.forward, Hit, maxDistance)){
With the Hit variable being a RaycastHit. But I want a tracer even if I don’t hit something. I have tried using a temporary Vector3 storing the LineRenderer’s second position parameter (The end of the line), like this:
var temp : Vector3 = gameObject.transform.position += new Vector3();
But this does not correspond with the rotation of the player. How can I do this?
Thanks in advance,
William