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

◆ SnapToGround()

vector DayZIntroSceneXbox::SnapToGround ( vector pos)
inlineprotected

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

358 {
359 float pos_x = pos[0];
360 float pos_z = pos[2];
361 float pos_y = GetGame().SurfaceY(pos_x, pos_z);
362 vector tmp_pos = Vector(pos_x, pos_y, pos_z);
363 tmp_pos[1] = tmp_pos[1] + pos[1];
364
365 return tmp_pos;
366 }
proto native float SurfaceY(float x, float z)
proto native CGame GetGame()
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки GetGame(), CGame::SurfaceY() и Vector().

Используется в CameraCreate() и DayZIntroSceneXbox().