Original Post
Hi, I am trying to do basic collision detection with .x file mesh's.When i open and generate mesh's hr = D3DXComputeBoundingBox( (D3DXVECTOR3*)pVertices, g_pMeshSysMem->GetNumVertices(),D3DXGetFVFVertexSize(g_pMeshSysMem->GetFVF()), &g_vObjectpMin,&g_vObjectpMax ); g_vObjectpMin and g_vObjectpMax are the D3DXVECTOR3 structures and they are the left down and right up coordinates of boundingbox. But it's not working g_vObjectpMin and g_vObjectpMax coordinates are so different with my mesh's.I mean mesh coord is 300,400,0 g_vObjectpMin is 0,-18,0 g_vObjectpMin is 0,18,0. Do you have any idea about my problem. Thanks.