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

◆ GetHeadingVector()

static vector GetHeadingVector ( notnull PlayerBase player)
staticprotected

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

727 {
728 vector dir = vector.Zero;
729 float headingAngle = GetHeadingAngle(player);
730 dir[0] = Math.Cos(headingAngle + Math.PI_HALF);
731 dir[2] = Math.Sin(headingAngle + Math.PI_HALF);
732
733 return dir.Normalized();
734 }
static float GetHeadingAngle(notnull DayZPlayerImplement player)
Определения MiscGameplayFunctions.c:736
Определения EnMath.c:7
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
static const vector Zero
Определения EnConvert.c:110
Определения EnConvert.c:106
static const float PI_HALF
Определения EnMath.c:14
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.

Перекрестные ссылки Math::Cos(), GetHeadingAngle(), vector::Normalized(), Math::PI_HALF, Math::Sin() и vector::Zero.