def detach_from_world(self, physics_world: PhysicsWorld):
        """
        Detach the object from the scene graph but store it in the memory
        Args:
            physics_world: PhysicsWorld, engine.physics_world

        Returns: None

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

        Detach the object from the scene graph but store it in the memory
        Args:
            physics_world: PhysicsWorld, engine.physics_world

        Returns: None

        
metadrive/component/block/base_block.py