www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on July 25, 2011, 09:33:58 am

Title: min distance problem
Post by: Thomas. 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
Title: Re: min distance problem
Post by: EgonOlsen 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.
Title: Re: min distance problem
Post by: Thomas. on July 25, 2011, 10:09:26 am
OK, now I understand :)