#include <ComposableCameraAutoRotateNode.h>
Inherits:
UComposableCameraCameraNodeBase
Node for auto-rotating around a given "main direction." The main direction is supplied either as an explicit direction vector or by reading an actor's forward vector each frame, selected via DirectionMode. Both inputs are pins so they can be wired from upstream compute nodes or context parameters.
Public Attributes¶
| Return | Name | Description |
|---|---|---|
EComposableCameraAutoRotateDirectionMode |
DirectionMode |
|
FVector |
MainDirection |
|
TObjectPtr< AActor > |
PrimaryActor |
|
bool |
bInterruptOnUserInput |
|
FVector2D |
CameraRotationInput |
|
FVector2D |
YawRange |
|
FVector2D |
PitchRange |
|
bool |
bYawOnly |
|
float |
BeyondValidRangeCooldown |
|
float |
InputInterruptCooldown |
|
int32 |
MaxCountAfterInputInterrupt |
|
TObjectPtr< UComposableCameraInterpolatorBase > |
RotateInterpolator |
DirectionMode¶
EComposableCameraAutoRotateDirectionMode DirectionMode { }
MainDirection¶
FVector MainDirection { FVector::ForwardVector }
PrimaryActor¶
TObjectPtr< AActor > PrimaryActor
bInterruptOnUserInput¶
bool bInterruptOnUserInput { true }
CameraRotationInput¶
FVector2D CameraRotationInput { 0.f, 0.f }
YawRange¶
FVector2D YawRange { 0.f, 0.f }
PitchRange¶
FVector2D PitchRange { 0.f, 0.f }
bYawOnly¶
bool bYawOnly { true }
BeyondValidRangeCooldown¶
float BeyondValidRangeCooldown { 0.f }
InputInterruptCooldown¶
float InputInterruptCooldown { 0.f }
MaxCountAfterInputInterrupt¶
int32 MaxCountAfterInputInterrupt { -1 }
RotateInterpolator¶
TObjectPtr< UComposableCameraInterpolatorBase > RotateInterpolator
Public Methods¶
| Return | Name | Description |
|---|---|---|
UComposableCameraAutoRotateNode inline |
||
void |
OnInitialize_Implementation virtual |
|
void |
OnTickNode_Implementation virtual |
|
void |
GetPinDeclarations_Implementation virtual const |
UComposableCameraAutoRotateNode¶
inline
inline UComposableCameraAutoRotateNode()
OnInitialize_Implementation¶
virtual
virtual void OnInitialize_Implementation()
OnTickNode_Implementation¶
virtual
virtual void OnTickNode_Implementation(float DeltaTime, const FComposableCameraPose & CurrentCameraPose, FComposableCameraPose & OutCameraPose)
GetPinDeclarations_Implementation¶
virtual const
virtual void GetPinDeclarations_Implementation(TArray< FComposableCameraNodePinDeclaration > & OutPins) const
Private Attributes¶
| Return | Name | Description |
|---|---|---|
TUniquePtr< TCameraInterpolator< TValueTypeWrapper< FRotator > > > |
Interpolator_T |
|
bool |
bInAutoRotate |
|
float |
BeyondValidRangeCooldownRemaining |
|
float |
InputInterruptCooldownRemaining |
|
int32 |
UsedCountAfterInputInterrupt |
Interpolator_T¶
TUniquePtr< TCameraInterpolator< TValueTypeWrapper< FRotator > > > Interpolator_T
bInAutoRotate¶
bool bInAutoRotate { false }
BeyondValidRangeCooldownRemaining¶
float BeyondValidRangeCooldownRemaining { 0.f }
InputInterruptCooldownRemaining¶
float InputInterruptCooldownRemaining { 0.f }
UsedCountAfterInputInterrupt¶
int32 UsedCountAfterInputInterrupt { 0 }
Private Methods¶
| Return | Name | Description |
|---|---|---|
std::pair< bool, bool > |
CheckIfInValidRange |
CheckIfInValidRange¶
std::pair< bool, bool > CheckIfInValidRange(const FVector2D & ValidRangeYaw, const FVector2D & ValidRangePitch, const FRotator & Rotation)