Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Nodes > API/Plugins/GameplayCameras/Nodes/Collision
Inheritance Hierarchy
- UObject
- IObjectTreeGraphObject
- UCameraNode
- UCollisionPushCameraNode
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Nodes/Collision/CollisionPushCameraNode.h |
| Include | #include "Nodes/Collision/CollisionPushCameraNode.h" |
Syntax
UCLASS (MinimalAPI, Meta=(CameraNodeCategories="Collision"))
class UCollisionPushCameraNode : public UCameraNode
Remarks
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.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bRunAsyncCollision | Whether to run the collision asynchrnously. | |
| TEnumAsByte< ECollisionChannel > | CollisionChannel | Collision channel to use for the line trace. | |
| FFloatCameraParameter | CollisionSphereRadius | Radius of the sphere used for collision testing. | |
| FVector3dCameraVariableReference | CustomSafePosition | An optional camera variable to query for a safe position. | |
| FBooleanCameraVariableReference | EnableCollision | An optional boolean camera variable that specifies whether collision should be enabled. | |
| TObjectPtr< UCameraValueInterpolator > | PullInterpolator | The interpolation to use when pulling the camera back to its ideal position. | |
| TObjectPtr< UCameraValueInterpolator > | PushInterpolator | The interpolation to use when pushing the camera towards the safe position. | |
| ECollisionSafePosition | SafePosition | How to compute the safe position. | |
| FVector3dCameraParameter | SafePositionOffset | World-space offset from the target to the line trace's end. | |
| ECollisionSafePositionOffsetSpace | SafePositionOffsetSpace | What space the safe position offset should be in. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCollisionPushCameraNode
(
const FObjectInitializer& ObjectInit |
Overridden from UCameraNode
| Type | Name | Description | |
|---|---|---|---|
| FCameraNodeEvaluatorPtr | OnBuildEvaluator
(
FCameraNodeEvaluatorBuilder& Builder |
Builds the evaluator for this node. |