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

◆ ConePoints()

static proto void Math3D::ConePoints ( vector origin,
float length,
float halfAngle,
float angleOffset,
out vector leftPoint,
out vector rightPoint )
staticprivate

Calculates the points of a right 2D cone in 3D space.

Аргументы
originvector Origin of cone
lengthfloat Length of the cone
halfAnglefloat Half of the angle of the cone in radians
angleOffsetfloat Angle offset of the cone in radians (handy for rotating it along with something in the world)
[out]leftPointvector Left point of the cone
[out]rightPointvector Right point of the cone

Используется в Debug::DrawCone() и MeleeTargetSettings().