playMaker

Author Topic: Is there a way to find the nearest vertex to gameobject?  (Read 8241 times)

markinjapan

  • Full Member
  • ***
  • Posts: 103
Is there a way to find the nearest vertex to gameobject?
« on: August 06, 2012, 07:57:42 AM »
Or vertex within a collision shape?

Thanks


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is there a way to find the nearest vertex to gameobject?
« Reply #1 on: August 07, 2012, 06:15:30 AM »
hi,

 yes, look at this unity answer:

http://answers.unity3d.com/questions/7788/closest-point-on-mesh-collider.html

 If you are ok with basic scripting you'll be ok, else, let me know, I can make it as an action. but be careful, this can be resource intensive if the mesh is large or if you are targeting mobile devices.

bye,

 Jean

Rhyuzaky

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Is there a way to find the nearest vertex to gameobject?
« Reply #2 on: July 22, 2015, 08:52:29 PM »
Please,make this action!