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

◆ IntersectRaySphere()

static proto float Math3D::IntersectRaySphere ( vector raybase,
vector raycos,
vector center,
float radius )
staticprivate

Tests whether ray is intersecting sphere.

Аргументы
raybasevector Start of ray
raycosvector End of ray
centervector Center of sphere
radiusfloat Radius of sphere
Возвращает
float -1 when not intersecting, else the fraction of ray