Archived

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

seb_B

intersection between a box and a ray

Recommended Posts

Guest Anonymous Poster   
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   
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