Module |
|
Header |
/Engine/Source/Editor/UnrealEd/Public/SnappingUtils.h |
Include |
#include "SnappingUtils.h" |
Source |
/Engine/Source/Editor/UnrealEd/Private/SnappingUtils.cpp |
static bool SnapDragLocationToNearestVertex
(
const FVector & BaseLocation,
FVector & DragDelta,
FLevelEditorViewportClient * ViewportClient,
bool bIsPivot
)
Snaps a delta drag movement to the nearest vertex
true if anything was snapped
Parameter |
Description |
---|---|
BaseLocation |
Location that should be snapped before any drag is applied |
DragDelta |
Delta drag movement that should be snapped. This value will be updated such that BaseLocation+DragDelta is the nearest snapped verted |
ViewportClient |
The viewport client being dragged in. |