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

◆ GenericDirectionalCheck()

static bool GenericDirectionalCheck ( vector dir1,
vector dir2,
float toleranceAngle )
staticprotected

just compares the angle

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

972 {
973 float angleRad = Math.Acos(dir1 * dir2);
974
975 //Print(angleRad);
976 //Print("result: " + (angleRad > toleranceAngle));
977
978 return angleRad > toleranceAngle;
979 }
Определения EnMath.c:7
static proto float Acos(float c)
Returns angle in radians from cosinus.

Перекрестные ссылки Math::Acos().

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