16 m_DebugShapeBBox.Destroy();
20 if (!m_ThisEntityAI.GetCollisionBox(
min_max))
36 m_DebugShapeBBox.SetColor(
color);
48 m_DebugShapeBBox.Destroy();
49 m_DebugShapeBBox =
null;
52 if (!m_DebugShapeDirection && !m_DebugShapeBBox)
63 if (m_DebugShapeDirection)
64 m_DebugShapeDirection.Destroy();
67 vector p2 = m_ThisEntityAI.GetDirection() * m_DebugShapeDirectionDist;
68 m_DebugShapeDirectionDist =
distance;
84 if (m_DebugShapeDirection)
86 m_DebugShapeDirection.Destroy();
87 m_DebugShapeDirection =
null;
90 if (!m_DebugShapeDirection && !m_DebugShapeBBox)
100 if (m_DebugShapeBBox || m_DebugShapeDirection)
103 m_ThisEntityAI.GetTransform(
mat);
105 if (m_DebugShapeBBox)
106 m_DebugShapeBBox.SetMatrix(
mat);
108 if (m_DebugShapeDirection)
109 m_DebugShapeDirection.SetMatrix(
mat);
override void DebugBBoxDelete()
override void DebugDirectionDelete()
override Shape DebugDirectionDraw(float distance=1)
Shape m_DebugShapeDirection
override Shape DebugBBoxDraw()
override void DebugBBoxSetColor(int color)
float m_DebugShapeDirectionDist
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
proto native CGame GetGame()
EntityEvent
Entity events for event-mask, or throwing event from code.