Search Issue Tracker

Fixed

Fixed in 2.10.0

Votes

0

Found in [Package]

2.9.7

Issue ID

CMCL-1550

Regression

No

"transform.position assign attempt for 'PlayerFollowCamera' is not valid" errors are thrown when Cinemachine "damping from" is being used

Package: Cinemachine Classic

-

How to reproduce:
1. Open the “Sandbox.zip” project
2. Open the “Home“ scene
3. In the Hierarchy window select Player > PlayerFollow Camera and change the “damping from collision” value in the Inspector window (Body > Damping From Collision)
4. Enter play mode
5. Use WASD to walk the character into the building and around the corners to trigger the damping effect
6. Observe the Game view and the Console window

Expected results: nothing strange happens
Actual results: the game hangs for 1-2 seconds and errors are thrown in the console

Reproducible with: 2.9.7 (2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b4)
Couldn’t test with: 3.0.1 (2022.3.18f1, because of compiler errors)

Reproducible on: Windows 11
Not reproducible on: no other environment tested

Note:
- Also reproducible in Player

  1. Resolution Note (fix version 2.10.0):

    Added a missing length check in 3rdPersonFollow.
    Workaround until release: leave DampingFromCollision at 0.

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.