Search Issue Tracker
Fixed
Fixed in 2.10.2, 3.1.2
Votes
0
Found in [Package]
2.10.1
3.1.1
Issue ID
CMCL-1608
Regression
Yes
Cinemachine Camera drifts when having multiple Parent GameObjects in the Project Hierarchy
How to reproduce:
1. Open the attached “IN-83830” Project
2. Locate and open the "Playground" Scene
3. Enter Play mode
4. Locate the "Camera Switcher" GameObject in the Hierarchy and press the "Switch" button in the Inspector window
5. Locate the "Virtual Camera" GameObject in the Project Hierarchy
6. Observe the "Virtual Camera" Transform Position drifting in both the Game window and the Inspector
Expected result: Cinemachine Camera stays in its fixed position after switching into it
Actual result: Cinemachine Camera drifts when having multiple Parent GameObjects in the Project Hierarchy
Reproducible in: 3.1.1(6000.0.19f1, 2022.3.46f1), 2.10.1 (6000.0.19f1, 2022.3.46f1, 2021.3.43f1)
Not reproducible in: 2.10.0 (2020.3.48f1, 2021.3.37f1), 2.6.17 (2020.3.48f1)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
* Ensuring that the Camera object only has a maximum of one Parent GameObject fixes the drift issue
* The issue has been confirmed to be caused by floating-point precision inaccuracies within the Unity Engine when evaluating the Cinemachine camera’s transform.SetPositionAndRotation(transform.position, transform.rotation)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Terrain Samples throws warnings in the Console window after import
- UI Builder expands and collapses USS files only by adding or removing selectors
- A vertex stream with a stride of 1 is bound to the GPU in Player when mesh is compressed
- Spot light is not rendered if the Outer Spot Angle is set to below 2.56216 when the Android Build Platform is selected
- StructuredBuffer is not writable to when using DirectX Graphics APIs
Add comment