def detach_from_physics_world(self, bullet_world: BulletWorld):
        """
         Detach the nodes in this list from bullet world
         :param bullet_world: BulletWorld()
         :return: None
         """
        if not self.attached:
            return
        for node in self:
            bullet_world.remove(node)
            if isinstance(node, BulletVehicle):
                break
        self.attached = False

         Detach the nodes in this list from bullet world
         :param bullet_world: BulletWorld()
         :return: None
         
metadrive/base_class/base_object.py