Create parent-child relationships between meshes:

// Create parent node
const parent = new BABYLON.TransformNode("parent", scene);
parent.position.y = 5;

// Make meshes children of the parent
sphere.parent = parent;
box.parent = parent;

// Position children relative to parent
sphere.position = new BABYLON.Vector3(2, 0, 0);  // 2 units right of parent
box.position = new BABYLON.Vector3(-2, 0, 0);    // 2 units left of parent

// Rotate the parent (affects all children)
parent.rotation.y = Math.PI / 4;