Original Post
Under the def of D3DXIntersect it has the following:
pDist
[out] Pointer to a ray intersection parameter distance.
WTF?!?! I consider myself a smart fellow... but is this English? At first I thought this meant simply the distance from the start of the ray to the intersection point... but it''s not! If I place the ray at 0,1,0 and have a mesh edge at 0,0,0 with the target at 0,-100,0 ... the the result is .00somthing ...? I thought maybe it is the percentage of the differance, but that seems to be off too (ever so subtly). If someone could tell me how to use this function! I''ve looked high and low, but I cannot find any examples. Hmmm...
Ghallo