Hello, I'm trying to wrap my head around how to generate 3d circle segments similar to the attachment - just imagine them as 3d like curved walls. As can be seen, the segments are in different distances from the center. Any pointers would be greatly appreciated. Thanks a lot.
To generate points on a circle, you'd use Code (CSharp): new Vector3( Mathf.Sin(angle) * radius, Mathf.Cos(angle) * radius, 0) Where angle ranges from 0 to 2pi. To generate only arcs, use a smaller range (0 to pi gives half a circle) You could pass these points to a LineRenderer for example
just imagine them as 3d like curved walls : Are these solid 3D objects with colliders? Do they move or scale?
Ah, if they do need to be solid colliders, then youll need to generate points and assemble them into a Mesh for use in mesh collider http://docs.unity3d.com/ScriptReference/Mesh.html