Search Issue Tracker

Duplicate

Votes

2

Found in

2017.1.0f3

Issue ID

940295

Regression

No

ClosestPoint returns invalid value when collider is off-center and it's parent is scaled

Physics

-

Reproduction steps:
1. Download project "TestContact.zip" and open in Unity
2. Open scene "TestContact"

Actual: "[BROKEN]ScaledParentAndOffsetCollider" object's Gizmo line is not on the collider
Expected: object's Gizmo line should be the closest point on the collider

Reproduced on: 2017.3.0a3; 2017.2.0b6; 2017.1.0p3; 5.6.3f1

Note: this applies to both Collider.ClosestPoint and Physics.ClosestPoint (choose in script "TestContact")

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.