Check out the documentation for d3.force.
If you want to deal with non-circular collision hulls or other advanced physics things, you will want a physics engine. That said, a lot can be done in d3 with careful implementation work.