Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Is there a way to get the closest distance between BoxCollider's surface and the vertex?

Discussion in 'Physics' started by okamoto_tomoyuki, Nov 2, 2018.

  1. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    8
    There is a vertex outside BoxCollider and its BoxCollider.
    I would like to get the outer vertex and the surface of the BoxCollider closest to that point, not the distance between the outer vertex of BoxCollider and the center point of BoxCollider.
    Is there a good way to do that?
     
    Last edited: Nov 2, 2018
  2. Edy

    Edy

    Joined:
    Jun 3, 2010
    Posts:
    1,293
  3. okamoto_tomoyuki

    okamoto_tomoyuki

    Joined:
    Jan 20, 2015
    Posts:
    8
    Edy likes this.