|
|
Le 17/06/2013 02:39, Christian Froeschlin a écrit :
> I'm not quite sure what you are testing, because touche.gray
> is not one of the variables you are actually using in trace.
> I assume that is a copy and post issue.
>
> But, you may be misunderstanding the direction
> ("departure") vector and the trace result.
>
> 1. This is not a line segment intersection test. The length
> is irrelevant. If it hits anything in the direction it points
> to it will return something. So you should paint the boxes where
> the surface is hit (trace result), not at the coordinate you
> start out testing.
>
> 2. As it is a direction you do not need to define the vector
> relative to the coordinate. If you want it to point 45° away
> you use <1,1,1>. If you want it to point inward to the origin
> you could use -<xx,yy,zz>.
>
Ok, I'll try, thank you.
Post a reply to this message
|
|