Fixing hierarchical transformations for child objects.
generateCuboid does not take into account the offset parameters.