Skip to main content
edited tags
Link
Philipp
  • 123.2k
  • 28
  • 264
  • 345
Source Link

Generating Realistic Looking Wire in Unity

I'm designing a game that involves the simulation of a breadboard. I would like some advice on the best way to simulate jumper wires used to connect various places on the breadboard together. I have provided a picture below for those unfamiliar with electronics.

enter image description here

These are the wires I would like to simulate. I would like them to dynamically adjust in length based on the distance of the connection points, and with some randomness (so hopefully wihout a perfect curve from point A to B). To be clear, the wires to not need to move dynamically, they just need to generate once.

If realistic randomness is not possible, what would be the best way to achieve even something like a smooth curve of wire from point A to B?