Comments and answers for "What is the math behind Collider.ClosestPointOnBounds?"
http://answers.unity.com/questions/1294781/what-is-the-math-behind-colliderclosestpointonboun.html
The latest comments and answers for the question "What is the math behind Collider.ClosestPointOnBounds?"Answer by WamboGer
http://answers.unity.com/answers/1473791/view.html
It is quite easy to calculate. You can just clamp the point to min and max of the bounding box.
See here:
[Game Physics Cookbook][1]
[1]: https://books.google.de/books?id=frkrDwAAQBAJ&pg=PA166&lpg=PA166&dq=aabb+closest+point&source=bl&ots=bOFmrJ9EU8&sig=qeoEi9lPg3NkUai_jDRqNCkdIKs&hl=de&sa=X&ved=0ahUKEwjkhtvDmsTZAhWBK1AKHa--Au0Q6AEIajAH#v=onepage&q&f=falseMon, 26 Feb 2018 18:36:43 GMTWamboGerComment by hexagonius
http://answers.unity.com/comments/1295308/view.html
Unity uses PhysX and their API does not show their function internals. that's what I knowFri, 06 Jan 2017 20:23:24 GMThexagonius