MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / OnDebugDraw

Method OnDebugDraw

Source/Engine/Level/Actors/PointLight.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129#include "Engine/Debug/DebugDraw.h"
130
131void PointLight::OnDebugDraw()
132{
133 if (SourceRadius > ZeroTolerance || SourceLength > ZeroTolerance)
134 {
135 // Draw source capsule
136 DEBUG_DRAW_WIRE_CAPSULE(GetPosition(), GetOrientation(), SourceRadius, SourceLength, Color::Orange, 0, true);
137 }
138
139 // Base
140 LightWithShadow::OnDebugDraw();
141}
142
143void PointLight::OnDebugDrawSelected()
144{

Callers

nothing calls this directly

Calls 3

GetOrientationFunction · 0.85
OnDebugDrawFunction · 0.85
GetPositionFunction · 0.50

Tested by

no test coverage detected