- Home /
Line Renderer to 3d model
I need to get the line renderer and use it to stretch and rotate a prefab to fit it (like in sims when you click and drag to make a wall), can this be done in the game and not the editor? I am an absolute noob. I am also using Unity version 2019.1.12f1.
Answer by TheOrangeNinja2245 · May 15, 2020 at 12:24 AM
I added some scripts and now it acts like the line renderer but makes walls, if anyone wants to know how i achieved this then ask me
bro i wana know how did you make line renderer to a 3d model like rope or slingshot . did you use spring joint of its both side. pls reply its urgent.
That was a while ago and I think I deleted the project, but I’m pretty sure I used Pythagorean theorem. I saved the first point where clicked and used the current mouse position to find the distance and angle between them. Just a heads up do inverted sin/cos/tan And I think I used sin but not sure. Search it up and splice some code together.
Answer by HOLLKA · May 10, 2020 at 11:13 AM
Read unity docs API about it. If there are properties of an object you can access them through scripts.
no offence but didn't you think i already tried that?
Your answer