Author Topic: min distance problem  (Read 2329 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
min distance problem
« on: July 25, 2011, 09:33:58 am »
I have problem with world.calcMinDistanceAndObject3D(...). I set the ignoreIfLarger to 50, but method returns minimal distance between 0 to 50 and about 120 to 220

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: min distance problem
« Reply #1 on: July 25, 2011, 10:04:21 am »
I'm not 100% sure what the question is here...ignoreIfLarger is an optimization switch, not a hard bound. If at least one vertex of the polygon is within that range, the polygon might be processed. If the intersection point is farer away then, it's not ignored or something...that's not the point of that attribute. If you want that, you have to check the returned result yourself.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: min distance problem
« Reply #2 on: July 25, 2011, 10:09:26 am »
OK, now I understand :)