How can I make a procedural script generated capsule? I want to manipulate it’s vertices segments, radius and height. I already did one but I couldn’t get it to generate “horizontal vertices” on the middle part" of the capsule, only on the top and bottom parts.
Creating a capsule from scratch is certainly possible, but kinda unnecessary. There are a lot of things you have to tackle. Especially when it comes to texture / UV mapping. The default capsule is already unwrapped twice (UV0 and UV1). If you want to change the size you can simply scale it. To change the height it may still be easier to just split the set of vertices in half at the center and move the top ones down and the bottom ones up uniformly to reduce the height but keeping everything else the same. Combined with uniform scaling you can create any capsule you like.