DayZ 1.29
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

См. определение в файле 3_Game/DayZ/tools/Debug.c строка 406

407 {
408 array<Shape> shapes = new array<Shape>;
409
410 vector endL, endR;
411 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
412
413 // Left side
414 shapes.Insert( Debug.DrawLine(pos, endL, color, flags) );
415 // Rigth side
416 shapes.Insert( Debug.DrawLine(pos, endR, color, flags) );
417 // Top side
418 shapes.Insert( Debug.DrawLine(endL, endR, color, flags) );
419 // Middle (height) line
420 shapes.Insert( Debug.DrawLine(pos, pos + Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).Normalized() * lenght, color, flags) );
421
422 return shapes;
423 }
string Debug()
Определения CachedEquipmentStorageBase.c:29
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().