Center Mass
Calculate position of center mass using the formula: Rx = (ma·xa + mb·xb) / (ma + mb)
Center Mass
Calculate position of center mass.
A coordinate system for determining center of mass:

The position of center mass can calculated as
Rx = (ma·xa + mb·xb) / (ma + mb)
or equivalently:
Rx = (mb / (ma + mb)) · d
Where:
- Rx = x-coordinate for the center of mass
- ma = mass of object a
- xa = x-coordinate of object a
- mb = mass of object b
- xb = x-coordinate of object b
- d = distance between objects