Directx9.0 collision detection