|
![](/i/fill.gif) |
In article <3c55df2e$1@news.povray.org>,
"RAY" <PCH### [at] mindspring com> wrote:
> Is there a way to test a macro against an entire scene? I need this for a
> collision detection macro I am trying to make, my current method is to use
> trace() to find the distance from the center of the sphere and test that
> against the radius, is there a better way? Thanks for your time.
There is no way to do that...the scene isn't yet complete when you make
the call, and may (and most likely does) depend on the results of the
call.
You could accomplish the desired result by tracing each individual
object, or by putting the objects in a union and using trace() on that.
--
Christopher James Huff <chr### [at] mac com>
POV-Ray TAG e-mail: chr### [at] tag povray org
TAG web site: http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |