UViewportWorldInteraction::ComputeConstrainedDragDeltaFromStart

Given a drag delta from a starting point, contrains that delta based on a gizmo handle axis

Windows
MacOS
Linux

References

Module

ViewportInteraction

Header

/Engine/Source/Editor/ViewportInteraction/Public/ViewportWorldInteraction.h

Include

#include "ViewportWorldInteraction.h"

Syntax

FVector ComputeConstrainedDragDeltaFromStart
(
    const bool bIsFirstDragUpdate,
    const bool bOnPlane,
    const TOptional< FTransformGizmoHandlePlacement > OptionalHandlePlacement,
    const FVector & DragDeltaFromStart,
    const FVector & LaserPointerStart,
    const FVector & LaserPointerDirection,
    const bool bIsLaserPointerValid,
    const FTransform & GizmoStartTransform,
    const float LaserPointerMaxLength,
    FVector & GizmoSpaceFirstDragUpdateOffsetAlongAxis,
    FVector & DragDeltaFromStartOffset,
    FVector & OutClosestPointOnLaser
) const

Remarks

Given a drag delta from a starting point, contrains that delta based on a gizmo handle axis

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss