Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRanvir Sahota
9,844 PointsGeometry Game Object?
Can someone explain geometry game object and how it allows the fly to rotate around it? Basically, I want to know the purpose of the geometry object.
1 Answer
Alan Mattanó
Courses Plus Student 12,188 PointsWhat do you mean for "geometry game object". Each Game object is empty. Do not contain components. Game Object are only a point in space. They contain the transform with the position. Now if you put a new Game object as a child, this second game object also gas his own point in space that is childe of the parent. So is you rotate the parent, all the game object that are child will rotate with it. So if the child game object is a fly it will rotate around itself. But if you move this fly child object and you rotate the parent , than the fly will look like is flying around. Make an experiment and rotate the parent to get an idea.