How to detect if a point is below a bounding box (thread-safe)?

by aftrumpet   Last Updated November 09, 2018 00:13 AM

I am trying to cast a shadow on a set of points in Unity that are below a BoxCollider object (have an x and z that would be in the box but y is below it). I previously used InverseTransform point to check if the points were in the bounding box, however it doesn't seem to work here because it would only check if the point y in the box frame is below the box.

In addition, I am doing this calculation on a thread so I can't use raycasting or any of the other Unity APIs available. How might I check if a point is below the box using strictly vector/quaternion math?



Related Questions



Bouding box for an object

Updated June 10, 2015 22:05 PM

Bounding sphere and intersection

Updated July 31, 2017 21:13 PM

unity 5.5 - OnMouseClick not fired

Updated December 27, 2016 08:05 AM