It would be extremely useful if we could get a function which would return the closest point on a mesh including barycentric coordinates.
Right now this can sort of be hacked up using the mesh collider variant, but it is far less than ideal.
The ideal method prototype would return a struct containing;
- Triangle index
- Point on mesh
- Barycentric coordinates between triangle(N+0, N+1, N+2)
- Bonus points for additional returns (e.g. blended normal, UVs, etc)