UAnselFunctionLibrary::ConstrainCameraByDistance

A utility which constrains distance of camera from its start point; may be useful when implementing a custom [APlayerCameraManager::PhotographyCameraModify](API\Runtime\Engine\Camera\APlayerCameraManager\PhotographyCameraModify)

Choose your operating system:

Windows

macOS

Linux

References

Module

Ansel

Header

/Engine/Plugins/Runtime/Nvidia/Ansel/Source/Ansel/Public/AnselFunctionLibrary.h

Include

#include "AnselFunctionLibrary.h"

Source

/Engine/Plugins/Runtime/Nvidia/Ansel/Source/Ansel/Private/AnselFunctionLibrary.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="Photography", Meta=(WorldContext=WorldContextObject))
static void ConstrainCameraByDistance
(
    UObject * WorldContextObject,
    const FVector NewCameraLocation,
    const FVector PreviousCameraLocation,
    const FVector OriginalCameraLocation,
    FVector & OutCameraLocation,
    float MaxDistance
)

Remarks

A utility which constrains distance of camera from its start point; may be useful when implementing a custom APlayerCameraManager::PhotographyCameraModify