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

◆ IntersectRayBox()

static proto float Math3D::IntersectRayBox ( vector start,
vector end,
vector mins,
vector maxs )
staticprivate

Tests whether ray is intersecting axis aligned box.

Аргументы
startvector Start of ray
endvector End of ray
minsvector Minimums of bound box
maxsvector Maximums of bound box
Возвращает
float -1 when not intersecting, else the fraction of ray