I use an implementation of the obstacle avoidance behaviour described by Reynolds: red3d.com/cwr/steer/Obstacle.html
I can't share my source code I'm afraid as it's part of an ongoing project, but I'm happy to help if you have any questions implementing it.