Search Issue Tracker

Fixed

Fixed in 2.6.18, 2.8.9, 2.9.5, 3.0.0-pre.5

Votes

0

Found in [Package]

2.6.17

2.8.9

2.9.4

3.0.0-pre.3

Issue ID

CMCL-1306

Regression

No

CinemachinePathBase.FindClosestPoint doesn't search the last segment of its path when there are more than 2 segments

Package: Cinemachine Classic

-

How to reproduce:
1. Open the user-attached “PathClosestPoint LatestPatch.zip” project
2. Open the “SampleScene” Scene
3. Select the “Sphere” GameObject in the Hierarchy window
4. Enter Play Mode
5. Note the “Nearest Point” value of the Script component

Expected result: The “Nearest Point” value is 3
Actual result: The “Nearest Point” value is a fraction value

Reproducible with: 2.6.17 (2020.3.43f1), 2.8.9 (2020.3.43f1, 2021.3.16f1), 2.9.4 (2020.3.43f1, 2021.3.16f1, 2022.2.1f1), 3.0.0-pre.3 (2022.2.1f1, 2023.1.0a24)

Reproduced on: macOS Monterey 12.6 (Intel), Windows 10 64bit - User Reported

Edit: The “Nearest Point” fraction value might be ~2.013 and or higher when testing

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.