Navigation
API > API/Plugins > API/Plugins/GameplayCameras
A node that pushes the camera towards a "safe position" when it is colliding with the environment. By default, the "safe position" is the pivot of the camera (if any) or the position of the player pawn.
| Name | UCollisionPushCameraNode |
| Type | class |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Nodes/Collision/CollisionPushCameraNode.h |
| Include Path | #include "Nodes/Collision/CollisionPushCameraNode.h" |
Syntax
UCLASS (MinimalAPI, Meta=(CameraNodeCategories="Collision"))
class UCollisionPushCameraNode : public UCameraNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UCameraNode → UCollisionPushCameraNode
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UCollisionPushCameraNode
(
const FObjectInitializer& ObjectInit |
Nodes/Collision/CollisionPushCameraNode.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRunAsyncCollision | bool | Whether to run the collision asynchrnously. | Nodes/Collision/CollisionPushCameraNode.h |
|
| CollisionChannel | TEnumAsByte< ECollisionChannel > | Collision channel to use for the line trace. | Nodes/Collision/CollisionPushCameraNode.h |
|
| CollisionSphereRadius | FFloatCameraParameter | Radius of the sphere used for collision testing. | Nodes/Collision/CollisionPushCameraNode.h |
|
| CustomSafePosition | FVector3dCameraVariableReference | An optional camera variable to query for a safe position. | Nodes/Collision/CollisionPushCameraNode.h |
|
| EnableCollision | FBooleanCameraVariableReference | An optional boolean camera variable that specifies whether collision should be enabled. | Nodes/Collision/CollisionPushCameraNode.h |
|
| PullInterpolator | TObjectPtr< UCameraValueInterpolator > | The interpolation to use when pulling the camera back to its ideal position. | Nodes/Collision/CollisionPushCameraNode.h |
|
| PushInterpolator | TObjectPtr< UCameraValueInterpolator > | The interpolation to use when pushing the camera towards the safe position. | Nodes/Collision/CollisionPushCameraNode.h |
|
| SafePosition | ECollisionSafePosition | How to compute the safe position. | Nodes/Collision/CollisionPushCameraNode.h |
|
| SafePositionOffset | FVector3dCameraParameter | World-space offset from the target to the line trace's end. | Nodes/Collision/CollisionPushCameraNode.h |
|
| SafePositionOffsetSpace | ECollisionSafePositionOffsetSpace | What space the safe position offset should be in. | Nodes/Collision/CollisionPushCameraNode.h |
|
Functions
Public
Protected
Overridden from UCameraNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FCameraNodeEvaluatorPtr OnBuildEvaluator
(
FCameraNodeEvaluatorBuilder& Builder |
Builds the evaluator for this node. | Nodes/Collision/CollisionPushCameraNode.h |