Search Issue Tracker
By Design
Votes
0
Found in
2017.1.1p4
Issue ID
958672
Regression
No
Physics.ClosestPoint with convex MeshCollider returns MeshCollider's pivot point, when given location is on the collider
To reproduce:
1. Open attached project "Justins_TestClosestPoint.zip".
2. Open and Play "TestScene".
Expected result: Blue cube is always showing the "closest point" from the yellow cube, to the mesh.
Actual result: Closest point is shown as the pivot of the mesh, when given position is on the edge or the center.
Reproducible: 5.6.4f1, 2017.1.2p2, 2017.2.0f3, 2017.3.0b6, 2018.1.9f2, 2018.2.18f1
Note:
ClosestPoint added only in Unity 5.6.
Workaround:
Make sure the location point is not on a meshCollider, when checking for ClosestPoint.
Fixed in: 2018.3.0b2, 2019.1.0a8
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
- Tile Palette grid is moved after entering Play Mode
- Tile Palette Edit mode turns off in Play Mode
- The Editor crashes when Generating Font Atlas in the Font Asset Creator with “9999999999” padding and 256x256 Atlas Resolution
- [iOS] An “ArgumentNullException” error is thrown when GetIntroductoryPriceDictionary() method is called
- Font Import Settings documentation page is missing when the documentation button is pressed in the Inspector window
Resolution Note:
Fixed in: 2018.3.0b2, 2019.1.0a8