Can anybody give me a link to a good collision detection library . i just need to be able to detect collisions between quadrilateral and triangular faces and maybe rectangular prisms
They are all made up of lines so just test for intersections between the lines. You can use this code to test for line-line intersection:
"faces"and "prisms"suggests to me that he’s working in 3D. In which case, try looking at jBullet or jODE.
Failing that, your requirements can be broken down to various numbers of 3D triangle/triangle intersection tests, which are themselves just up to six triangle/line segment tests. Google should provide code for how to perform these.