Files
2025-05-18 13:04:45 +08:00

24 lines
520 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "BaseGizmos/GizmoInterfaces.h"
#include "BaseGizmos/GizmoMath.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(GizmoInterfaces)
void IGizmoAxisSource::GetAxisFrame(
FVector& PlaneNormalOut, FVector& PlaneAxis1Out, FVector& PlaneAxis2Out) const
{
PlaneNormalOut = GetDirection();
if (HasTangentVectors())
{
GetTangentVectors(PlaneAxis1Out, PlaneAxis2Out);
}
else
{
GizmoMath::MakeNormalPlaneBasis(PlaneNormalOut, PlaneAxis1Out, PlaneAxis2Out);
}
}