Use Box2d for collision detection

Hello. I'm new to Box2d and was wondering if I could use it just for collision detection in my 2d platformer game, no physics simulation. That way I avoid having to write my own collision detection code. Is this a good idea? And if it is, is it fairly easy to just do collision detection in Box2d?

Thank you!
Check the manual for the sections about Sensors, and Contact Listeners:

http://www.box2d.org/manual.html#d0e889
http://www.box2d.org/manual.html#d0e1310
In order to do that, you would still have to learn a lot about the Box2D APIs (probably moreso than a normal user, because you're getting into its internals if you want to use collision detection by itself) and you'll have to attach a Box2D shape to every object in your game. And to create a Shape, you need a World... basically, you'll have a good bit of overhead just to do collision detection, but it isn't impossible. If your collision detection will just involve rectangles, it would be easier by far to write your own code, but if you are using polygonal shapes and you need to get collision normals and such, Box2D may be a better choice.

Basically, if you just need to compare whether 2 geometric shapes intersect with each other, without calculating collision normals or any of that, Box2D is probably way overkill.
Thanks for the advice ACE91. You are right, it is still quite a bit of work to get just basic collision detection working. I downloaded the source for Box2d in Java, and got it running with Slick, then modified the existing demo example to see how things work. It is pretty neat but it would require a great deal of effort to create a generic solution that would allow dynamically generated game objects to be bound to physics objects on the fly. For now I'll just write my own collision detection code.

Thanks again.
If you're using Java and Slick, Slick has its own geometry classes that support collision detection. (org.newdawn.slick.geom.*) Those might be useful to you.

Original thread: https://box2d.org/forum/viewtopic.php?t=1077