- Home /
LineRenderer alignment
So I am trying to use a line renderer and some code to click on a 3d cylinder, and then drag, and draw a line using a line renderer. Unfortunately my camera is at an angle when doing this, and I can't exactly change the alignment to view because it would end up cutting some parts of the line as it clips into the cylinder, and alginment to Z transform isn't quite what I want. I am wondering if anyone has figured out how to click and draw a line renderer using a mouse drag onto a 3d object and make the line, rather than be facing the camera or its own Z axis, face in the same direction as the normal of the point where I click on the cylinder, and each line segment, follow that normal so it always faces away from the 3d object.
Any ideas?
Your answer
Follow this Question
Related Questions
Make A Laser? 1 Answer
Raycasting along line renderer width 1 Answer
Rotate Object with mouse in RTS style game 2 Answers
Raycasting 1 Answer