moved getAttachedBodies to JointStateGroup