AC_FirstPersonCamera is an Actor Component used to apply camera animations, recoil shakes, free look, and FOV updates at runtime.
Initialization
First, specify that the Camera will be animated. Use the default Camera component that comes with ACharacter.
Then, update the player mesh reference:
Free Look
Free look is implemented by calling these methods on the Tactical Camera:
And by controlling player look input:
Note: During free look, only the camera should receive look input.
FOV
The camera also updates the FOV when aiming:
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:
DA_FirstPersonCameraShake is a Data Asset that contains 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.