Search Issue Tracker
Fixed in 2.6.0-preview.7
Votes
0
Found in [Package]
2.6.0-preview.2
Issue ID
1234966
Regression
No
[Cinemachine] 2D Camera flies away from the target when hitting a confiner which has its Transform Scale value set to not 1
How to reproduce:
1. Open the attached project named "Case_1234966"
2. Open the Confiners Scene
3. Check if the virtual camera "CM vcam_Confiner2D_scaled" is active
4. Enter Play mode
5. Using the arrow keys, move the capsule in any direction
6. Observe the Game view
Expected result: Camera stops when it hits the side of the Confiner
Actual result: Camera flies away from the target as soon as it hits the side of the Confiner
Reproducible with: 2018.4.22f1, 2019.3.11f1, 2020.1.0b7, 2020.2.0a9
Reproducible with package versions: 2.2.0, 2.5.0, 2.6.0-preview.2
Notes:
-3D cameras that use the same Confiner work as expected
-When confiner's size is set in the Box Collider collider settings, the camera works as expected. The issue only seems to occur when confiner is scaled using the Transform component
-Large Transform Scale values will cause the camera to fly further away from the target object
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
- The build size is larger when Models have Animation Type set to Generic
Resolution Note (fix version 2.6.0-preview.7):
Fixed in Cinemachine 2.6.0 which is available in 2018.4/2019.4/2020.1/2020.2