Cable preview

Spline Mesh Blueprint

The art team needed a tool to easily place cables in the world, so I created a spline mesh blueprint. While the length of the instanced mesh or “section” could be specified, I would not use that value flat out as it would cause Z-fighting at the end of the spline. Instead I would divide that value from the spline length and use the whole number to divide from the spline length again. This makes sure that each section is evenly spaced and close to the specified value without making the artist set the amount of sections.

Length Estimation

Connectors

I was also asked to add the ability to instance meshes along the cable to act as connectors or plugs. I had the blueprint get the position and rotation between each of the spline meshes to use as the place to instance the connectors. I also added options to make this placement random.

Settings