|
![](/i/fill.gif) |
In article <slr### [at] fwi com>, ron### [at] povray org
wrote:
> Even that wouldn't see the special case where one box is entirely enclosed
> by the other box.
But you could use eval_pattern() with the object pattern to catch this
case...you would still need to use trace() though, because there are
cases when two boxes intersect but all of their corners are outside.
And if you use a similar method to do collision with meshes, you could
tesselate (almost) any object with the tesselation patch and use the
resulting mesh for collision testing. It would be slow (a patch might be
needed to get a useable speed, like a "objects_intersect(ObjectA,
ObjectB, ...ObjectX) function), but you could speed it up a little by
using low-resolution meshes, either as a bounds test or for the actual
collision detection.
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
![](/i/fill.gif) |