def set_heading_theta(self, heading_theta, in_rad=True) -> None:
        """
        Set heading theta for this object
        :param heading_theta: float
        :param in_rad: when set to True, heading theta should be in rad, otherwise, in degree
        """
        h = panda_heading(heading_theta)
        if in_rad:
            h = h * 180 / np.pi
        self.origin.setH(h)

        Set heading theta for this object
        :param heading_theta: float
        :param in_rad: when set to True, heading theta should be in rad, otherwise, in degree
        
metadrive/base_class/base_object.py