Open vxlcoder opened 6 years ago
There is some great ray casting code in RF, that handles some of the issues that used to be associated with negative Z direction in perspective vs orthographic mode. May I suggest a ray_cast.py which has demo usage of ob.ray_cast, scene.ray_cast, bvh.ray_cast along with the helper functions you created that assess the bounding box etc.
replace stuff like below with a standard function call