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

Method OnDebugDraw

Source/Engine/Level/Actors/SpotLight.cpp:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183#include "Engine/Debug/DebugDraw.h"
184
185void SpotLight::OnDebugDraw()
186{
187 if (SourceRadius > ZeroTolerance)
188 {
189 // Draw source tube
190 DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(GetPosition(), SourceRadius), Color::Orange, 0, true);
191 }
192
193 // Base
194 LightWithShadow::OnDebugDraw();
195}
196
197void SpotLight::OnDebugDrawSelected()
198{

Callers

nothing calls this directly

Calls 3

OnDebugDrawFunction · 0.85
BoundingSphereClass · 0.50
GetPositionFunction · 0.50

Tested by

no test coverage detected