Hi there
I am not sure whether to put this here or in the games development section I do apologies if it is in the wrong the section.
I have an object with a bounding box around it. I want another object to then be able to send a ray out and test to see if the box is within a given range.
I would also like the object generating the ray to be able to constantly change the direction of the ray.
Is there a simple formula that I am missing for doing ray-AABB intersection? I have read about splitting a box into "slabs"?
This seems unnecessary for what I am trying to achieve I simply want to fire a ray and see if it intersects with a box, and at what distance.
Any help would be greatly appreciated