What I am trying to do is add a group of objects along a straight line using a “tween” animation, so that the objects are grouped around the middle of the line, then another group is added to the previous group, so the previous group is shifted to the left to form a new group whose elements are grouped around the middle of the straight line.
![
]
In short: I'm trying to do what the hbox container does when we set the alignment mode to center and set a certain value for separation, but in 3D with respect to the x coordinates of the object.
All I need to know is the mathematical equation used by the hbox container, taking into account the settings previously mentioned, or something like that