Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    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. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    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:
    5
    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,221
  3. okamoto_tomoyuki

    okamoto_tomoyuki

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