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
- “ArgumentOutOfRangeException“ error when selecting 'TMP_InputField' content using keyboard in WebGL build
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
Resolution Note:
Fixed in: 2018.3.0b2, 2019.1.0a8