Is it possible to get Euler Angles from a lineRenderer? I would like to orient a cylinder object to sit directly on top of a line between two spheres.
Is this possible? When I use Debug.Log(line.gameObject.transform.eulerangles) the output is always (0,0,0). I would like a cylinder object to mimic exactly that the line connecting two spheres is doing.
Could you get away with using Vector3.Lerp() between the two sphere positions? You could offset the resulting position upward by the cylinder’s radius to get a slightly better position.
Not ideal, but the alternatives are probably going to get involved unless you can find some clever way to do this with colliders.