def attach_to_world(self, parent_node_path: NodePath, physics_world: PhysicsWorld):
        """
        Attach the object to the scene graph
        Args:
            parent_node_path: which parent node to attach
            physics_world: PhysicsWorld, engine.physics_world

        Returns: None

        """
        if not self.is_attached():
            for obj in self._block_objects:
                obj.attach_to_world(parent_node_path, physics_world)
        super(BaseBlock, self).attach_to_world(parent_node_path, physics_world)

        Attach the object to the scene graph
        Args:
            parent_node_path: which parent node to attach
            physics_world: PhysicsWorld, engine.physics_world

        Returns: None

        
metadrive/component/block/base_block.py