ClosestPointOnBounds from within collider
Hello,
I have a BoxCollider within an other one. I am trying to get the closest point on the outer collider, from the inner collider's position. Currently I am using outerCollider.ClosestPointOnBounds(innerCollider.position) but I am always getting the inner collider's position as result. Am I missing something on how the API method works or do I have to find a workaround ?
Thanks in advance
Comment
Your answer
Follow this Question
Related Questions
Problems with ClosestPointOnBounds 0 Answers
What is the math behind Collider.ClosestPointOnBounds? 1 Answer
Collision is not working with some Collider2d 1 Answer
How to specify in the GetComponent method in colliders?! 2 Answers
Jitter with Tilemap Collider's but no Jitter on standard Box Collider 1 Answer