How to bend a pipe?

Hi ppl.

I have read that it is possible to modify a mesh at runtime using scripts. I have not used this, but I would like to try it.

Now, imagine that I have a model of a cylinder which I would like to bend to an arbitrary angle. What is a good approach to solving this problem? Is it hard to accomplish?

Any code suggestions are welcome!

I use C#.

Easiest way I can think of would be to create a model of a cylinder with a weighted bone attached (in a 3d modelling program) like you’re gonna animate it like a limb. Then you can control the bones at runtime with a script.

Thank you! Im gonna look a bit deeper into this. Have heard the term before but never used it… :slight_smile: