Problems with ClosestPointOnBounds
I works very well, unless the point is inside the bounds. Then it just return back the given variable. How can I get the closest point to bounds, when my point is inside it?
Comment
Your answer
Follow this Question
Related Questions
What is the math behind Collider.ClosestPointOnBounds? 1 Answer
ClosestPointOnBounds from within collider 0 Answers
Collider bounds encapsulate doesn't seem to do anything 2 Answers
How to get raw bounds size of a Box collider? 1 Answer
Teleport through walls even with colliders and rigidbody 1 Answer