Hello Unity Forums!
I am an primary school educator currently studying Unity in the hopes of using it to teach my students in the near future. Our course primarily focuses on electronics, wiring, circuitry, programming and such, but I thought it would be nice to give the students a chance to learn how to make a game based on our educational materials.
Since I am fairly new to unity, I am quite unfamiliar with the inner workings and have taken to studying several “courses”/tutorials on youtube. The problem however, is that most, if not all of these tutorials focus on action shooters or platformer games and not so much on educational or puzzle games. That being said, I would like to primarily learn how to create a “wire” that can pin from one point to another as if connecting two points on a breadboard, and has a physics rope (wire) between the two points. If anyone can point me in the right direction for any resources, documentation, or free asests, I would greatly appreciate it!
Thank you,
Dae
You can try to use a so called “line renderer”, because there you can create lines as long and thick as you want.
To create on first create an empty game object and second add a component called “line renderer”.
Those ones you also create or manipulate via script at runtime.
1 Like
dididucdich, thanks for the reply. This is a great start, which I really appreciate!
If my understanding of the component is correct, this creates a rigid line between two points, right? is there any way to make it a “loose” line, such as through the physics engine or something similar? or perhaps add “noise” so as to create a more “realistic” looking wire (which are almost never straight after multiple uses!).
Thanks,
Dae
Yes its only a straight line between two points. A possibility can be creating many short lines via script on a spline/curve/combinedcurve.
Or have a look at the asset store if there is an asset which fits your needs.
With the physics system you can create many short elements (capsules for example) which are connected via joints. But it produced much cpu load and can be very difficult to handle.