- Home /
How can I change the thickness of a torus?
Hello, I have an imported model of a torus and i would like to be able to change the thickness while the game is playing. This is the current situation: i need to modify all those rings at runtime.
All the rings are copies of the imported torus. Any suggestion?
I'd say the easiest way to do this would be to animate the torus thickness in whatever 3D software you used to export it. Then run the animation when needed in Unity. The only other solution I can think of would be to create an array containing all the vertices from the mesh and manipulate their position but I don't think that would be very easy to do or especially efficient.
Answer by BauPlay · Mar 10, 2016 at 10:33 AM
Hi, may be try create torus with script? See here http://answers.unity3d.com/questions/1152485/draw-torus-with-a-spot-in-the-center.html#answer-1153145
modify this script for your task
I already saw this script and it kinda works. It has the problem that it generate a flat material who doesn't receive shadows and lack of 3d effect. But this actually seem the only possible way
Your answer
Follow this Question
Related Questions
Get plain coordinates for another object 2 Answers
cloning prosedural mesh,deform mesh and instantiate 0 Answers
Moving an hole in a plane 0 Answers
Sort a list based on edge connections 1 Answer
Polybrush on runtime 0 Answers