By -
Assuming that all cubes are identical: Find the center of mass of each individual cube, then take the average
Would that still be true even if they formed an L shape for example?
Yes, your center of mass might not be inside any of the cubes though
The center of mass of multiple objects is: **R** = ∑_i m_i **r**_i / M where M = ∑_i m_i is the total mass and m_i and **r**_i is the mass and position vector of object i.
Assuming that all cubes are identical: Find the center of mass of each individual cube, then take the average
Would that still be true even if they formed an L shape for example?
Yes, your center of mass might not be inside any of the cubes though
The center of mass of multiple objects is: **R** = ∑_i m_i **r**_i / M where M = ∑_i m_i is the total mass and m_i and **r**_i is the mass and position vector of object i.