Archived

This topic is now archived and is closed to further replies.

intersection between a box and a ray

This topic is 5840 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guest Anonymous Poster
you basically would the plane frome each face of the box with the ray, so it is a simply ray-plane intersection test. you also have to make sure the intersection is between the extents of the box, so just check if the intersection is between minx,miny and maxx,maxy for the face it intersected. i think that should do it.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
took me 15 seconds on dogpile.com (plus, i just got them to donate some food for the holidays)

http://www.siggraph.org/education/materials/HyperGraph/raytrace/rtinter3.htm

this is a pretty quick explanation, but with a little more searching you should be able to find something even more detailed

Share this post


Link to post
Share on other sites