Skip to main content

Class DrivingCameraEffector

Drives FOV expansion and lateral aim-target offset on Cinemachine virtual cameras each frame, based on the actor's speed and steering angle.

[RequireComponent(typeof(SwitchableCameraConfigurationProvider))]
public class DrivingCameraEffector : MonoBehaviour

Inheritance​

Remarks​

FOV expands with speed to heighten the sensation of velocity for VR participants (see minFov and maxFov). The aim target shifts laterally when the vehicle steers, giving a subtle cornering lean that reinforces vestibular cues without requiring head-mounted tracking data. Both effects are smoothed with SmoothDamp to prevent single-frame spikes from wheel-input noise feeding straight into the camera.