add FSGDebugCube
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "Math/Color.h"
|
||||
#include "UObject/Object.h"
|
||||
|
||||
#include "SGDebug/SGDebugCube.h"
|
||||
#include "SGDebug/SGDebugGizmo.h"
|
||||
|
||||
void FSGDebugVirtualHand::Draw(const UWorld* World,
|
||||
@@ -64,17 +65,7 @@ void FSGDebugVirtualHand::Draw(const UWorld* World,
|
||||
|
||||
if (Settings.DrawingMode == ESGDebugVirtualHandDrawingMode::CubicJoints)
|
||||
{
|
||||
const float LifeTime = UGameplayStatics::GetWorldDeltaSeconds(World)
|
||||
* Settings.DebugCubicHandSettings.LifeTimeModifier;
|
||||
DrawDebugBox(World,
|
||||
HandKeyPosition,
|
||||
Settings.DebugCubicHandSettings.Extent,
|
||||
HandKeyRotation,
|
||||
Settings.DebugCubicHandSettings.Color,
|
||||
Settings.DebugCubicHandSettings.bPersistentLines,
|
||||
LifeTime,
|
||||
Settings.DebugCubicHandSettings.DepthPriority,
|
||||
Settings.DebugCubicHandSettings.Thickness);
|
||||
FSGDebugCube::Draw(World, HandKeyPosition, HandKeyRotation, Settings.DebugCubicHandSettings);
|
||||
}
|
||||
else if (Settings.DrawingMode == ESGDebugVirtualHandDrawingMode::GizmoJoints)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user