Added scene graph traversal for transform calculation