I’m having lots of trouble getting objects that are Parent Constrained to a Cinemachine camera to move smoothly.
I’ve been able to reproduce this problem both with “multi-parent” constraints from Unity’s Animation Rigging package, as well as regular Parent Constraints.
The repro is fairly simple:
- Create a new scene with a GameObject (“MainCamera”) containing a Camera component.
- Give “Main Camera” a Cinemachine Brain component.
- Create a new GameObject (“CinemachineCamera”) containing a Cinemachine Camera component, and a Pan Tilt component.
- Create a new 3D Sphere Object (“Sphere”).
- Set the “Sphere” transform’s Z axis to 5 or so, so it’s in frame of the CinemachineCamera.
- Give “Sphere” a Parent Constraint component, add “CinemachineCamera” as the source. Activate the constraint.
- Press play.
- Observe the following behavior when moving the camera: Imgur: The magic of the Internet
I’ve tried messing with the update mode – “LateUpdate” does nothing, “FixedUpdate” fixes it, but then the camera is on fixed update which makes the entire game feel jittery (this is my main camera in an FPS game).
Here’s what the non-minimal repro looks like, for context: Imgur: The magic of the Internet
Any help would be super appreciated. Thank you!