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

Package: Cinemachine

-

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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.