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

◆ IntersectRayPlane()

static proto int Math3D::IntersectRayPlane ( vector rayStart,
vector rayEnd,
vector planeNormal,
float planeDist,
out vector intersection )
staticprivate

Tests whether ray is intersecting plane.

Аргументы
rayStartvector Start of ray
rayEndvector End of ray
planeNormalvector Normal of the plane
planeDistfloat Length of the plane
intersectionvector Intersection point of the plane, only valid when return is 3
Возвращает
int 1 when behind, 2 when in front and 3 when intersecting the plane