Skip to main content
gamedev.net
🔒 Locked

Boundingbox

Started by sansured Dec 9, 2005 at 1:40 PM 0 replies 300+ views
Original Post
sansured
sansured
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.