Original Post
I can''t understanding one parameters of that functions.
HRESULT D3DXIntersect( LPD3DXBASEMESH pMesh,
CONST D3DXVECTOR3 *pRayPos,
CONST D3DXVECTOR3 *pRayDir,
BOOL *pHit,
DWORD *pFaceIndex,
FLOAT *pU,
FLOAT *pV,
FLOAT *pDist,
LPD3DXBUFFER *ppAllHits,
DWORD *pCountOfHits
);
What is *pRayDir? In directx sdk write."] Pointer to a D3DXVECTOR3 structure, specifying the direction of the ray. " Okay but where from i can take it. For example I habe two point start(0,0,0) and end (1,1,1). What is direction?
Why directx need diretion vector?