Problem 54054. Determine Center of Mass for a Set of Floating Spheres
Each sphere has a position determined by theta (x,y plane angle) and tau (elevation angle) as well as L, the distance of the center of the sphere from the origin. Each sphere also has a radius, r, and a density of rho.
These values are defined in a single input matrix: sceneAttributes
The output should be a 1x3 matrix defining the CoM in cartesian 3D space (x, y, z)
All angles are in degrees, all distances are in meters, and density is in kg/m^3
Assume density and lengths are always positive