Navigation
API > API/Plugins > API/Plugins/ModelingComponents > API/Plugins/ModelingComponents/FDragAlignmentBase
Description
Optional- allows the use of the mechanic in mesh deformation. Specifically, alignment will attempt to align to the dynamic mesh underlying the given FDynamicMeshAABBTree3, and ignore deformed triangles when the gizmo is moved. This works with only one deformed mesh, so it probably wouldn't be used with multiple gizmos.
| Name | InitializeDeformedMeshRayCast |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/DragAlignmentMechanic.h |
| Include Path | #include "Mechanics/DragAlignmentMechanic.h" |
| Source | /Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Private/Mechanics/DragAlignmentMechanic.cpp |
void InitializeDeformedMeshRayCast
(
TFunction < UE::Geometry::FDynamicMeshAABBTree3 *> GetSpatialIn,
const FTransform3d & TargetTransform,
const UE::Geometry::FGroupTopologyDeformer * LinearDeformer
)