   D3DXComputeBoundingBox Algorithm do check collision
  HelloUsing the function D3DXComputeBoundingBox i can get the vectors... and its working ok...now i want check the collision... but my function not are working can somebody give a help to fix it?function CheckCollision(const Mesh1: TMesh; Mesh2: TMesh): Boolean;beginif Mesh1.tmpMaxVec.x > Mesh2.tmpMinVec.x thenbeginif Mesh1.tmpMinVec.x < Mesh2.tmpMaxVec.x thenbegin  if Mesh1.tmpMaxVec.y > Mesh2.tmpMinVec.x then  begin  if Mesh1.tmpMinVec.y < Mesh2.tmpMaxVec.x then  begin    if Mesh1.tmpMaxVec.z > Mesh2.tmpMinVec.x then    begin    if Mesh1.tmpMinVec.z < Mesh2.tmpMaxVec.x then    begin    Result := True;    Exit;    end;    end;  end;  end;end;end;Result := False;end;Greets   
  What do you mean it's "not working"? Does it crash? Does it say there's always a collision? Does it say there's never a collision? Does it randomly work sometimes? Are the vectors generated by D3DXComputeBoundingBox correct? (Or do they at least appear to be correct)?   ;Quote:Original post by Evil SteveWhat do you mean it's "not working"? Does it crash? Does it say there's always a collision? Does it say there's never a collision? Does it randomly work sometimes? Are the vectors generated by D3DXComputeBoundingBox correct? (Or do they at least appear to be correct)?the vectors are ok...bur the collision dont have effect............. never do collision...........;  already fixed it! :)   