PDA

View Full Version : if a line crosses a box



markun
10-19-2002, 03:13 AM
hello;

Does someone have the calculation of
to find if a line crosses a box in 3d?
for ex. lne may given by an equation
or two points(start and end )
and box is given by 8 corners...

Thanks all

Leyder Dylan
10-19-2002, 07:29 AM
You mean "Collision Detection" ?
If yes, check this website :
www.gametutorials.com (http://www.gametutorials.com)

In the "OpenGL" section, there're many programs for collision detection.

markun
10-19-2002, 10:03 AM
Yes, it can be taught as a
collision detection. In fact it
is picking an object in 3d enverionment.
i get a line from unprojection.
And i must look for which objects that line
crosses.. i mean line points which object?

Leyder Dylan
10-19-2002, 12:25 PM
www.gametutorials.com (http://www.gametutorials.com) contains also a 3D Object Picking. Check this wonderful site ...

zed
10-19-2002, 12:48 PM
AAB or OOB?
see here http://www.realtimerendering.com/int/