The Stack Overflow podcast is back! Listen to an interview with our new CEO.

New answers tagged

0

First, this: but I'm wanting to detect intersection with a 3D line segment (not an infinite ray) with a 3D AABB doesn't make sense. Most of these ray intersection algorithms return the distance until you hit the object. All you need to do is check that the distance is less than the length of your line segment. For your normal calculation, find the ...


0

I've figured it out: ray = cam.ScreenPointToRay(obj.position);


Top 50 recent answers are included