added PlayerTraceChart2D.cpp

This commit is contained in:
2023-09-15 20:16:44 +08:00
parent 924af437c0
commit eeec8248a4
4 changed files with 353 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ using namespace hgl::bitmap;
OSString csv_filename;
uint MAP_RATE_SCALE=100; //地图缩小比例UNREAL中单位为厘米换算到米需要/100。
uint POSITION_SCALE_RATE=100; //坐标缩小比例UNREAL中单位为厘米换算到米需要/100。
//原地图4K现底层为1K所以需要再/4。
//2K地图用的底层为2K所以只/100
@@ -127,8 +127,8 @@ bool ParsePosition(Vector2i *result,const UTF8String &str)
if(!hgl::stoi(sp,result->y))
return(false);
result->x/=MAP_RATE_SCALE; //Unreal单位为cm,把单位缩到米
result->y/=MAP_RATE_SCALE; //同时把4096的地图缩小到1024
result->x/=POSITION_SCALE_RATE; //Unreal单位为cm,把单位缩到米
result->y/=POSITION_SCALE_RATE; //同时把4096的地图缩小到1024
if(result->x>=BackgroundBitmap->GetWidth()
||result->y>=BackgroundBitmap->GetHeight()