Skip to main content
AC_FirstPersonCamera is an Actor Component used to apply camera animations, recoil shakes, free look, and FOV updates at runtime.

Initialization

Updating the target camera component.

First, specify that the Camera will be animated. Use the default Camera component that comes with ACharacter. Then, update the player mesh reference:

Updating the character mesh.

Free Look

Free look is implemented by calling these methods on the Tactical Camera:

Handling free look.

And by controlling player look input:

Taking free look input into account.

Note: During free look, only the camera should receive look input.

FOV

The camera also updates the FOV when aiming:

Updating FOV.

This logic switches between aiming and non‑aiming FOV states; the component handles FOV interpolation under the hood.

Camera Shakes

The Play Camera Shake function is used to play shakes when firing:

How to play a camera shake.

DA_FirstPersonCameraShake is a Data Asset that contains shake settings:

Camera Shake settings.

  • Rotation Curve: Camera rotation animation.
  • Pitch/Yaw/Roll: Range of the pitch/yaw/roll value.
  • Smoothing: Interpolation speed.
  • Play Rate: Playback speed multiplier.