DayZ 1.30
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 строка 419

420 {
421 array<Shape> shapes = new array<Shape>;
422
423 vector endL, endR;
424 Math3D.ConePoints(pos, lenght, halfAngle, offsetAngle, endL, endR);
425
426 // Left side
427 shapes.Insert( Debug.DrawLine(pos, endL, color, flags) );
428 // Rigth side
429 shapes.Insert( Debug.DrawLine(pos, endR, color, flags) );
430 // Top side
431 shapes.Insert( Debug.DrawLine(endL, endR, color, flags) );
432 // Middle (height) line
433 shapes.Insert( Debug.DrawLine(pos, pos + Vector(Math.Cos(offsetAngle), 0, Math.Sin(offsetAngle)).Normalized() * lenght, color, flags) );
434
435 return shapes;
436 }
string Debug()
Определения CachedEquipmentStorageBase.c:26
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().