- Home /
Rotate GameObjects to define a cylinder
I'm trying to figure out a good way to make circular GameObjects face towards the center of a cylinder. The "dots" themselves are positioned in such a manner that shapes into a cylinder. I'm stuck on what geometric calculations are needed to make each dot face the correct way--i.e., dots on the tube face directly toward the center, and dots on the top and bottom faces are rotated directly down and up, respectively.
Answer by Daniken · Jul 07, 2015 at 12:14 PM
Consider creating an empty gameobject which can act as a center point for this cylinder and attach the "dots" as children to this gameobject. Now you only need to rotate the empty gameobject and the dots will follow (because the empty gameobject is their parent). A simple rotation of one single object will then do the trick if I understood you correctly.
Hope this helps and good luck!
Your answer
![](https://koobas.hobune.stream/wayback/20220613201044im_/https://answers.unity.com/themes/thub/images/avi.jpg)