#include <ComposableCameraScreenSpaceConstraintsNode.h>

Inherits: UComposableCameraCameraNodeBase

Node for constraining a pivot position in screen using either translation or rotation.

Public Attributes

Return Name Description
TObjectPtr< AActor > PivotActor
EComposableCameraScreenSpaceMethod Method
FVector2D SafeZoneCenter
FVector2D SafeZoneWidth
FVector2D SafeZoneHeight

PivotActor

TObjectPtr< AActor > PivotActor

Method

EComposableCameraScreenSpaceMethod Method

SafeZoneCenter

FVector2D SafeZoneCenter { 0.0, 0.0 }

SafeZoneWidth

FVector2D SafeZoneWidth { -0.1, 0.1 }

SafeZoneHeight

FVector2D SafeZoneHeight { -0.1, 0.1 }

Public Methods

Return Name Description
void OnInitialize_Implementation virtual
void OnTickNode_Implementation virtual
void BeginDestroy virtual
void GetPinDeclarations_Implementation virtual const

OnInitialize_Implementation

virtual

virtual void OnInitialize_Implementation()

OnTickNode_Implementation

virtual

virtual void OnTickNode_Implementation(float DeltaTime, const FComposableCameraPose & CurrentCameraPose, FComposableCameraPose & OutCameraPose)

BeginDestroy

virtual

virtual void BeginDestroy()

GetPinDeclarations_Implementation

virtual const

virtual void GetPinDeclarations_Implementation(TArray< FComposableCameraNodePinDeclaration > & OutPins) const

Private Attributes

Return Name Description
FDelegateHandle DrawDebugHandle

DrawDebugHandle

FDelegateHandle DrawDebugHandle

Private Methods

Return Name Description
FVector EnsureWithinBoundsTranslation
FRotator EnsureWithinBoundsRotation
std::pair< float, float > GetTanHalfHORAndAspectRatio
std::pair< float, float > CalibrateRotationOffsetNewton
FVector GetCurrentPivot
void DrawDebugInfo

EnsureWithinBoundsTranslation

FVector EnsureWithinBoundsTranslation(const FVector & Pivot, const FComposableCameraPose & CurrentPose, const float & AspectRatio, const float & TanHalfHOR)

EnsureWithinBoundsRotation

FRotator EnsureWithinBoundsRotation(const FVector & Pivot, const FComposableCameraPose & CurrentPose, float AspectRatio, float DegTanHalfHor)

GetTanHalfHORAndAspectRatio

std::pair< float, float > GetTanHalfHORAndAspectRatio(const FComposableCameraPose & OutCameraPose)

CalibrateRotationOffsetNewton

std::pair< float, float > CalibrateRotationOffsetNewton(float TanHalfHOR, float AspectRatio, FVector Direction, FRotator LookAtRotation, float ScreenX, float ScreenY)

GetCurrentPivot

FVector GetCurrentPivot()

DrawDebugInfo

void DrawDebugInfo(AHUD * HUD, UCanvas * Canvas)