POV-Ray : Newsgroups : povray.advanced-users : collision detection for boxes : Re: collision detection for boxes Server Time
30 Jul 2024 14:20:20 EDT (-0400)
  Re: collision detection for boxes  
From: Ron Parker
Date: 18 May 1999 10:23:37
Message: <374169d9.0@news.povray.org>
On Tue, 18 May 1999 08:55:19 +0200, Marc Schimmler wrote:
>The problem with this method is as Ron pointed out that it is possible
>that not one vertice of both boxes lie in the volume of the other and
>they still share some common space. This leaves only the plane/plane
>intersections.

And the plane/edge intersections.  These will be easier to test, I think,
because the intersection is a point instead of a line.  Making sure that
point is in the bounds reduces roughly to the result Peter just gave.
Making sure the line formed by a plane/plane intersection is in bounds 
reduces to the plane/edge intersection test.  You'll also want to test 
at least one vertex from each box to see if it's inside the other box.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.