5 override void DebugDraw()
13 Color color1 = Color.FromInt(m_Interactor.GetDebugColor().PackToInt());
14 Color color = Color.FromInt(m_Interactor.GetDebugColor().PackToInt());
15 Color color2 = Color.FromInt(m_Interactor.GetDebugColor().PackToInt());
19 color2.Lerp(Color.FromInt(Color.WHITE), 0.5);
27 string infoText =
string.Format(
" GEN Pos: %1 Distance: %2 m ", idx, vector.Distance(m_Interactor.GetOwnerOrigin(), container.GetOwnerOrigin()));
28 origin = container.GetOwnerOrigin();
29 consumerIdx = container.GetLinkedInteractorIndex(m_Interactor);
31 if (container.IsResourceGainEnabled())
34 if (container.IsResourceDecayEnabled())
37 heightDiff = container.debugControlOffset * consumerIdx + container.debugControlOffset * 3;
39 Shape.CreateArrow(origin + Vector(0.0, heightDiff, 0.0), origin, 0.0, 0xFFFFFFFF, ShapeFlags.ONCE | ShapeFlags.NOZBUFFER);
41 Shape.CreateArrow(m_Interactor.GetOwnerOrigin(), (origin + Vector(0.0, heightDiff, 0.0)), 0.1, color1.PackToInt(), ShapeFlags.ONCE | ShapeFlags.NOZBUFFER |ShapeFlags.DEPTH_DITHER);
43 DebugTextWorldSpace.Create(m_Interactor.GetOwner().GetWorld(), infoText, DebugTextFlags.CENTER | DebugTextFlags.FACE_CAMERA | DebugTextFlags.ONCE, origin[0], origin[1] + heightDiff, origin[2], 10, color.PackToInt(), color2.PackToInt(), consumerIdx + 1);
45 if (!container.GetComponent().IsDebugVisualizationEnabled())
46 container.DebugDraw(
false);