Skip to content
Gallery
Documentation: Ultimate Gameplay Camera
Share
Explore
Camera Modifiers

icon picker
Pitch Follow Modifier

UGCPitchFollow.gif

Pitch Follow Modifier

One of the more basic requirements of a dynamic camera is to automatically reset the pitch angle (up/down) of the camera if it’s left in a weird angle, or adjust it to the slopes the character is walking on or adjust it when the character falling.
The less the player needs to adjust the camera themselves, the better. This is why we’ve added a camera modifier which will rotate the camera pitch dynamically as long as the player isn’t actually controlling the camera.
Here are examples from AAA video games.
RDR2PitchFollow.gif
Source - Red Dead Redemption
Pitch Follow
RDR2PitchSlopeFollow.gif
Source - Red Dead Redemption
Pitch Slope Follow
GenshinImpactPitchFollow.gif
Source - Genshin Impact
Pitch Follow
GenshinImpactPitchSlopeFollow.gif
Source - Genshin Impact
Pitch Slope Follow
GoTPitchFollow.gif
Source - Ghost of Tsushima
Pitch Follow

Pitch Follow Modifier Settings

There are a number of settings you can tweak for the pitch follow modifier.
image.png
General Pitch Follow Settings:
Pitch Follow Speed: The speed at which the camera rotates its pitch to follow when falling/moving.
Pitch Follow Angle Threshold: Minimum pitch angle difference above which we trigger the pitch follow modifier to avoid the modifier being triggered for small angles.
Pitch Follow Settings when Moving:
Enable Pitch Movement Follow: Whether the pitch should reset to the resting pitch when the character is moving.
Resting Pitch: The pitch to go to when the the character is moving without controlling the camera's pitch is messed up.
Pitch Follow Time Threshold: The minimum time the player shouldn't rotate the camera manually before the pitch follow kicks in.
Pitch Follow Settings when Falling:
Trigger When Falling: Should the camera look down when the character is falling for at least TimeThresholdWhenFalling in seconds and the floor is at least MinDistanceFromGround centimeters away?
Pitch Follow Time Threshold When Falling: The minimum time the player shouldn't rotate the camera manually before the modifier is triggered while they’re falling.
Min Distance From Ground To Trigger When Falling: The minimum distance we should be above the ground to trigger the pitch follow when falling .
Speed Multiplier When Falling: A multiplier to apply to the follow speed of the camera when we're feeling.
Pitch Follow Settings when on Slopes:
Trigger On Slopes: Should the camera pitch look toward the inclination of the slope the character is walking on?
Slope Min Incline: The minimum slope pitch inclination angle so that the pitch follow modifier is triggered (so that it’s not triggered for small bumps).
cancel
Never enable the Yaw Follow Modifier and/or Pitch Follow Modifier at the same time as the Focus Modifier.
You can do this either with the camera data asset or the functions, as described further below.

Triggering the Pitch Follow Modifier

You can do this either by calling SetPitchMovementFollowSettings on the BP_UGCCameraManager
image.png
Or you can set them through the UGCCameraDataAssets, and then calling SetCameraData on BP_UGCCameraManager (see ).
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.