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

Method OnDebugDrawSelected

Source/Engine/Navigation/NavLink.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include "Engine/Debug/DebugDraw.h"
27
28void NavLink::OnDebugDrawSelected()
29{
30 const auto start = _transform.LocalToWorld(Start);
31 const auto end = _transform.LocalToWorld(End);
32 DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(start, 10.0f), Color::BlueViolet, 0, true);
33 DEBUG_DRAW_WIRE_SPHERE(BoundingSphere(end, 10.0f), Color::BlueViolet, 0, true);
34 DEBUG_DRAW_LINE(start, end, Color::BlueViolet, 0, true);
35
36 // Base
37 Actor::OnDebugDrawSelected();
38}
39
40#endif
41

Callers

nothing calls this directly

Calls 3

OnDebugDrawSelectedFunction · 0.85
BoundingSphereClass · 0.50
LocalToWorldMethod · 0.45

Tested by

no test coverage detected