POV-Ray : Newsgroups : povray.advanced-users : collision detection : Re: collision detection Server Time
30 Jul 2024 00:28:17 EDT (-0400)
  Re: collision detection  
From: Chris Huff
Date: 23 Feb 2001 05:26:53
Message: <chrishuff-E536A4.05255923022001@news.povray.org>
In article <3a9629a5@news.povray.org>, "Tom Melly" <tom### [at] tomandlucouk> 
wrote:

> Presumably the answer is "No", but is it possible to test directly whether
> the intersection of two objects actually resulted in any actual shape (a
> collision) or not?

"No"
You will have to do something like scan across the intersection of the 
bounding boxes with trace() or inside_object() (or the InObj() macro) to 
find out if there is anything left. And then there is the possibility 
that you simply missed it because you didn't scan the bounding area at a 
high enough resolution, and it would be slow, even if patched into 
POV...and you wouldn't be able to detect if an object just touches 
another this way.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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