Hi, I was trying to make a script which can do an accurate intersection for some purpose.
I've tried 2 simple methods:
Method 1:
r = ray $Point_A_fail.position $Point_B_fail.position
rayInterSectObj = intersectRayScene r
-- result is an empty array
Using method 1 has issue that in most of cases it does not catch the ray intersecting object.
Attached max file has both sets one that works another that doesn't.
Method 2:
intersects $Poly_A $Poly_B
-- returns true, but truth is that these objects are not intersecting
This method is very simple throwing boolean value intersecting or not, but this is not working accurately.
Attached max file have the objects to execute this code.
Someone please suggest me some way to do the intersection or raycasting accurately.
or tell me if I have done something wrong.
Thanks
By parveenkaloi · 2018-09-05