I’m getting the distance between two objects by getting the hit point (second thing returned) and subtracting the ‘from’ object’s position.
It’s giving me nonsense results. I then sat down and tested it and found that it worked fine if the ray cast hit an obstacle dead on (ie, normal to a face) but changing the angle by as much as 5 degrees caused the ray to travel straight through and return None.
I tried a range of different physics settings (triangle mesh, convex hull, randomly changing the ‘margin’ and ‘radius’ values) without any idea what any of them meant.
What gives? I’m actually behind on a deadline and really beginning to regret having used blender. Is this a bug or is there anything I can do about it?