I've no doubt that this question has been asked countless times (and in fact the search tool confirms my suspicions) yet I ask this question because either the results never truly made sense to me, or that I was looking for a slightly different answer.
Firstly, I've taken a look at this ray-aabb slab method; http://www.cs.utah.edu/~awilliam/box/box.pdf
I suffer two problems here;
- What is the purpose of t1 and t2? (optimised method) - How would I derive them from an origin and target of a ray?
- How can I get the hitpoint from this boolean output?
I hate to ask so expectantly, but many thanks in advance,
Angus Hollands