On 28/03/2018 04:30, Sven Littkowski wrote:
> Thanks Alain and Stephen. :-)
>
> The item is what is to be checked for (like the name of a Declare union,
> I would assume).
>
> The first coordinate is from where the search ray is starting?
>
> The second coordinate is towards which direction (destination) the
> search ray is heading?
>
> Norm contains the coordinates of a hit?
>
>
I think that it a good idea to quote the bit of code that you are
talking about.
Norm is the vector of the normal if the trace ray hits the target. So we
test to see if the vector is not zero. That means we have a hit. If Norm
is zero then the ray missed.
I have an test scene from when I was learning to use trace() that is
self contained. Firing arrows at a mesh target. A study for Saint
Sebastian. I will post it after cleaning up the Bishop3D workarounds.
--
Regards
Stephen
Post a reply to this message
|