def _draw_line_3d(self, start_p: Union[Vec3, Tuple], end_p: Union[Vec3, Tuple], color, thickness: float):
        """
        This API is not official
        Args:
            start_p:
            end_p:
            color:
            thickness:

        Returns:

        """
        start_p = [*start_p]
        end_p = [*end_p]
        start_p[1] *= 1
        end_p[1] *= 1
        line_seg = LineSegs("interface")
        line_seg.moveTo(Vec3(*start_p))
        line_seg.drawTo(Vec3(*end_p))
        line_seg.setThickness(thickness)
        np = NodePath(line_seg.create(False))
        material = Material()
        material.setBaseColor(LVecBase4(*color[:3], 1))
        np.setMaterial(material, True)
        return np

        This API is not official
        Args:
            start_p:
            end_p:
            color:
            thickness:

        Returns:

        
metadrive/engine/core/engine_core.py