Original Post
HRESULT WINAPI D3DXIntersect( LPD3DXBASEMESH pMesh, const D3DXVECTOR3 *pRayPos, const D3DXVECTOR3 *pRayDir, BOOL *pHit, DWORD *pFaceIndex, FLOAT *pU, FLOAT *pV, FLOAT *pDist, LPD3DXBUFFER *ppAllHits, DWORD *pCountOfHits ); 1 this function has many parameter. I just wanna the coordinate of intersect point. so are the pU pV pFaceIndex ppAllHits pCountOfHits unuseful? Do I still need deine variable for the output parameter? It seem it can not be set 0 if you do not need them. 2. it is ppAllHits data type typedef struct _D3DXINTERSECTINFO { DWORD FaceIndex; FLOAT U; FLOAT V; FLOAT Dist; } D3DXINTERSECTINFO, *LPD3DXINTERSECTINFO; it seem ppAllHits has also pu pv dist, what is different between ppAllHits and FLOAT *PU ,PV pDist?