[BUG] SimulationManager cannot update FieldOfView when CinemachineBrain is updated in FixedUpdate

WeiYiHua

Member
TPC 3.0.14

Hello, I found that when CinemachineBrain is set to LateUpdate in Cinemachine integration, it will cause jitter. This is caused by the interval between FixedUpdate and LateUpdate and cannot be avoided.
Now it seems that CinemachineBrain can only be set to FixedUpdate.

In this case, the modification to m_Lens.FieldOfView in one FixedUpdate does not appear to be applied to Camera.fieldOfView until the next FixedUpdate, which causes a serious problem. The Smooth of SimulationManager will always record the value of Camera.fieldOfView of the first FixedUpdate, so Camera.fieldOfView cannot be changed through CinemachineViewType. To solve this problem, just set Camera.fieldOfView immediately after m_Lens in CinemachineViewType, similar to the update method in ViewType.
 
Top