i get units' postion through UnitX UnitY UnitZ descriptors, but how to translate it into mapcoords which match the return value of "/run print(GetPlayerMapPosition(unit))" ?
Instead of figuring out algorithm by myself, i decided to use CGWorldFrame::TranslateToMapCoords and so far i've work out about it except the first argument
its prototype should be CGWorldFrame::TranslateToMapCoords(this,continent,realX,realY,mapX,mapY,0,0,0)
So what on earth does the first argument mean? what's CGWorldFrame Object? and what value should i pass to this function?