Empty GameObjects Stuck at world(0,0,0)

Hello,

in my game i have many instantiated empty GameObjects which are supposed to act as points of rotations for spherical objects in my scene, thus they should be at the center of each ball. the code i have written seems correct and the transforms of each emptygame object is correct but they are all at the center of the world map as if they are stuck there…

In the upper left, see where it says “center” and “global”? Those are the settings for the position and orientation respectively of the transform widget. “Center” means that it will be placed at the center of the object’s bounding box (and all its children) and if you don’t have a bounding box it may behave oddly, but if you change to “pivot”, the widget will be placed at the object’s origin point. Change that and see if it behaves like you expect.

In general, having those set to “pivot” and “local” are going to be the best defaults. You might switch to each one’s alternative for specific situations, but most of the time you’ll want pivot/local.

1 Like

Yes it did work, thanks allot!!