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

◆ DrawCone()

static array< Shape > Debug::DrawCone ( vector pos,
float lenght,
float halfAngle,
float offsetAngle,
int color = 0xFFFFFFFF,
int flags = 0 )
inlinestaticprivate

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

344 {
345 array<Shape> shapes = new array<Shape>;
346
347 vector endL, endR;
348 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
349
350 // Left side
351 shapes.Insert( Debug.DrawLine(pos, endL, color, flags) );
352 // Rigth side
353 shapes.Insert( Debug.DrawLine(pos, endR, color, flags) );
354 // Top side
355 shapes.Insert( Debug.DrawLine(endL, endR, color, flags) );
356 // Middle (height) line
357 shapes.Insert( Debug.DrawLine(pos, pos + Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).Normalized() * lenght, color, flags) );
358
359 return shapes;
360 }
void Debug()
Определения UniversalTemperatureSource.c:349
proto vector Normalized()
return normalized vector (keeps orginal vector untouched)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки Math3D::ConePoints(), Math::Cos(), DrawLine(), Math::Sin() и Vector().