323{
324 TRACE_CPUPROFILER_EVENT_SCOPE(UALSDebugComponent::DrawDebugSweptSphere);
325 SCOPE_CYCLE_COUNTER(STATGROUP_ALS_Debug_Component);
326
327 FVector const TraceVec = End - Start;
328 float const Dist = TraceVec.Size();
329
330 FVector const Center = Start + TraceVec * 0.5f;
331 float const HalfHeight = (Dist * 0.5f) + Radius;
332
333 FQuat const CapsuleRot = FRotationMatrix::MakeFromZ(TraceVec).ToQuat();
334 DrawDebugCapsule(InWorld, Center, HalfHeight, Radius, CapsuleRot, Color, bPersistentLines, LifeTime, DepthPriority);
335}