Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

66 lines
1.9 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MuT/NodeMeshClipMorphPlane.h"
#include "Misc/AssertionMacros.h"
#include "MuR/MutableMath.h"
#include "MuT/NodeLayout.h"
namespace UE::Mutable::Private
{
NodeMeshPtr NodeMeshClipMorphPlane::GetSource() const
{
return Source;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetSource( NodeMesh* p )
{
Source = p;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetPlane(FVector3f Center, FVector3f Normal)
{
Parameters.Origin = Center;
Parameters.Normal = Normal;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetParams(float dist, float factor)
{
Parameters.DistanceToPlane = dist;
Parameters.LinearityFactor = factor;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetMorphEllipse(float radius1, float radius2, float rotation)
{
Parameters.Radius1 = radius1;
Parameters.Radius2 = radius2;
Parameters.Rotation = rotation;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetVertexSelectionBox(FVector3f Center, FVector3f Radius)
{
Parameters.VertexSelectionType = EClipVertexSelectionType::Shape;
Parameters.SelectionBoxOrigin = Center;
Parameters.SelectionBoxRadius = Radius;
}
//---------------------------------------------------------------------------------------------
void NodeMeshClipMorphPlane::SetVertexSelectionBone(const FBoneName& BoneId, float maxEffectRadius)
{
Parameters.VertexSelectionType = EClipVertexSelectionType::BoneHierarchy;
Parameters.VertexSelectionBone = BoneId;
Parameters.MaxEffectRadius = maxEffectRadius;
}
}