DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CalculateMapTile()

string DebugMonitor::CalculateMapTile ( vector pos)
inlineprotected

См. определение в файле DebugMonitor.c строка 148

149 {
150 string tile;
151 float worldSize = g_Game.GetWorld().GetWorldSize();
152
153 float tileX = Math.InverseLerp(0, worldSize, pos[0]);
154 float tileY = Math.InverseLerp(0, worldSize, pos[2]);
155
156 tile = GetTileFomFraction(tileX).ToString() + GetTileFomFraction(tileY).ToString();
157
158 return tile;
159 }
DayZGame g_Game
Определения DayZGame.c:3942
int GetTileFomFraction(float fraction)
Определения DebugMonitor.c:161

Перекрестные ссылки g_Game, GetTileFomFraction() и Math::InverseLerp().

Используется в SetPosition().