Thanks Andrei!
This works great (but I needed to add 'isNormalized=true' to the end of rayIntersectsAABB to get y=0).
If you're ever in the UK I'll buy you a beer!
Cheers!
This works great (but I needed to add 'isNormalized=true' to the end of rayIntersectsAABB to get y=0).
If you're ever in the UK I'll buy you a beer!
Cheers!