POV-Ray : Newsgroups : povray.advanced-users : collision detection for boxes : Re: collision detection for boxes Server Time
30 Jul 2024 14:24:55 EDT (-0400)
  Re: collision detection for boxes  
From: Marc Schimmler
Date: 17 May 1999 11:04:01
Message: <374021CF.2F61938D@ica.uni-stuttgart.de>
Ron Parker wrote:
> 
> 
> Are the boxes axis-aligned?  If so, a few coordinate comparisons should
> be able to do the trick.
> 
> If not, are they at least aligned with each other?  If so, a few
> coordinate comparisons in a transformed coordinate system should do
> the trick.
> 
> If they're neither, I think the plane intersections are all you have
> left, as it's conceivable that two boxes could intersect yet have all
> their corners on the outside of each other (though you could get away
> with edge-face comparisons, which might be preferable to face-face
> comparisons.) In fact, you'll still have to be careful, as it's also
> conceivable that two boxes can occupy a common volume yet not intersect
> at all.

The third case is true and I came to same conclusions. Good to know that
I wasn't wrong there. I guess I have to sit down on my bud and work it
out.


Thank you Ron,

Marc
-- 
Marc Schimmler


Post a reply to this message

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