Original Post
I am trying to use D3DXIntersect to do collision detection between two meshes. Does it only return the closest triangle to intersect the ray? I am producing the a ray from each vertex of the first object for the position? For the rays direction vector i am using the velocity vector normalized. I am not sure if this is correct as i have not been able to find much online about it. At the momenent is misses the collision or stops miles before the collision.